Code and GUI text cleanup (#926)
* Move int range checkers from options class to common file * Improve error handling and reporting * Make some minor improvements to init and test suite * Fix 'trypewriter' to 'typewriter' typo * Remove menu path description in dialog help text * Improve the help text for entries in the Format menu * Reword a couple of dialog messages
This commit is contained in:
committed by
GitHub
parent
e71121f738
commit
e8bb130245
+7
-7
@@ -43,15 +43,15 @@ class MockGuiMain():
|
||||
def releaseNotes(self):
|
||||
return
|
||||
|
||||
def makeAlert(self, theMessage, theLevel):
|
||||
assert isinstance(theMessage, str) or isinstance(theMessage, list)
|
||||
print("%s: %s" % (str(theLevel), theMessage))
|
||||
self.lastAlert = str(theMessage)
|
||||
def makeAlert(self, message, level=0, exception=None):
|
||||
assert isinstance(message, str) or isinstance(message, list)
|
||||
print("%s: %s" % (str(level), message))
|
||||
self.lastAlert = str(message)
|
||||
return
|
||||
|
||||
def askQuestion(self, theTitle, theQustion):
|
||||
print("Question: %s" % theQustion)
|
||||
self.lastQuestion = (theTitle, theQustion)
|
||||
def askQuestion(self, title, qustion):
|
||||
print("Question: %s" % qustion)
|
||||
self.lastQuestion = (title, qustion)
|
||||
return self.askResponse
|
||||
|
||||
def setStatus(self, theMessage):
|
||||
|
||||
Reference in New Issue
Block a user