@@ -187,32 +187,31 @@ def __init__(self, levelEditor, parent = None, **kw):
187187 message_text = CONTROLS )
188188 self .controlsDialog .withdraw ()
189189
190- self .autoSaverDialog = Pmw .Dialog (parent , title = 'Autosaver Options' ,
191- buttons = ('Save Options' ,),
192- command = self .setAutoSaverInterval
193- )
190+ self .autoSaverDialog = Pmw .Dialog (parent , title = 'Autosaver Options' ,
191+ buttons = ('Save Options' ,),
192+ command = self .setAutoSaverInterval )
194193 self .autoSaverDialog .withdraw ()
195194
196195 self .autoSaverDialogInterval = Pmw .Counter (self .autoSaverDialog .interior (),
197- labelpos = 'w' ,
196+ labelpos = 'w' ,
198197 label_text = 'Auto save interval in minutes:' ,
199- entry_width = 10 ,
198+ entry_width = 10 ,
200199 entryfield_value = int (AutoSaver .autoSaverInterval ),
201- entryfield_validate = {'validator' : 'real' ,
200+ entryfield_validate = {'validator' : 'real' ,
202201 'min' : 1 , 'max' : 60 })
203202
204203 self .autoSaverDialogMax = Pmw .Counter (self .autoSaverDialog .interior (),
205- labelpos = 'w' ,
204+ labelpos = 'w' ,
206205 label_text = 'Max auto save files:' ,
207- entry_width = 10 ,
206+ entry_width = 10 ,
208207 entryfield_value = int (AutoSaver .maxAutoSaveCount ),
209- entryfield_validate = {'validator' : 'numeric' ,
208+ entryfield_validate = {'validator' : 'numeric' ,
210209 'min' : 0 , 'max' : 99 })
211210
212211 counters = (self .autoSaverDialogInterval , self .autoSaverDialogMax )
213212 Pmw .alignlabels (counters )
214213 for counter in counters :
215- counter .pack (fill = 'both' , expand = 1 , padx = 10 , pady = 10 )
214+ counter .pack (fill = 'both' , expand = 1 )
216215
217216 self .editMenu = Pmw .ComboBox (
218217 menuFrame , labelpos = W ,
@@ -1592,10 +1591,10 @@ def toggleAutoSaver(self):
15921591 # If no working DNA outputFile is selected, one is chosen here
15931592 if DNASerializer .outputFile is None :
15941593 DNASerializer .saveToSpecifiedDNAFile ()
1595- print (f'Started auto saver on an interval of { AutoSaver .autoSaverInterval } minutes' )
1594+ print (f'Starting auto saver on an interval of { AutoSaver .autoSaverInterval } minutes' )
15961595 # Toggles auto saver to begin auto saving loop
15971596 AutoSaver .autoSaverToggled = True
15981597 else :
1599- print ('Stopped auto saver process ' )
1598+ print ('Stopping auto saver' )
16001599 # Stops auto saving loop
16011600 AutoSaver .autoSaverToggled = False
0 commit comments