Skip to content

Commit b8da028

Browse files
committed
more code aujstment
1 parent deea49e commit b8da028

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

ClashMusicGui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
''' Corporate Clash Music.JSON editor GUI '''
1+
""" Corporate Clash Music.JSON editor GUI """
22

33
from PyQt5.QtGui import *
44
from PyQt5.QtWidgets import *
@@ -390,7 +390,7 @@ def __init__(self, identifier, holiday, *args, **kwargs):
390390
self.show()
391391

392392
def disableTrack(self):
393-
''' Sets the selected music as the NONE string, which clash can read '''
393+
""" Sets the selected music as the NONE string, which clash can read """
394394
self.selectedMusic = 'None'
395395
self.selectedLabel.setText('DISABLED')
396396

Settings.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
'''
2-
OpenTTTools Settings
1+
"""
2+
OpenTTTools Settings
33
Slight override of a typical dict to make the file auto save when a change is made
4-
'''
4+
"""
55

66
import collections, json, os
77

@@ -26,33 +26,33 @@ def __init__(self, filename):
2626
self.save()
2727

2828
def save(self):
29-
''' Write settings changes to the json file '''
29+
""" Write settings changes to the json file """
3030
with open(self.filename, 'w') as jsonFile:
3131
json.dump(self.data, jsonFile, indent = 4)
3232
print('Saved settings')
3333

3434
''' Overrides '''
3535

3636
def __getitem__(self, key):
37-
''' x = settings['setting'] override '''
37+
""" x = settings['setting'] override """
3838
return self.data[key]
3939

4040
def __setitem__(self, key, value):
41-
''' settings['setting'] = 'value' override '''
41+
""" settings['setting'] = 'value' override """
4242
self.data[key] = value
4343
# Save the file
4444
self.save()
4545

4646
def __delitem__(self, key):
47-
''' del settings['setting'] override '''
47+
""" del settings['setting'] override """
4848
del self.data[key]
4949
# Save the file
5050
self.save()
5151

5252
def __iter__(self):
53-
''' iteration override (e.g. for x in settings) '''
53+
""" iteration override (e.g. for x in settings) """
5454
return iter(self.data)
5555

5656
def __len__(self):
57-
''' len(settings) Override '''
57+
""" len(settings) Override """
5858
return len(self.data)

0 commit comments

Comments
 (0)