1
0
mirror of https://github.com/gryf/pygtktalog.git synced 2025-12-17 19:40:21 +01:00

* Code clean up in dialog and configuration views.

This commit is contained in:
2007-06-23 17:12:02 +00:00
parent a6019fff41
commit a48458d1f9
2 changed files with 4 additions and 2 deletions

View File

@@ -11,5 +11,4 @@ class ConfigView(View):
def __init__(self, ctrl): def __init__(self, ctrl):
View.__init__(self, ctrl, self.GLADE) View.__init__(self, ctrl, self.GLADE)
return return
pass # end of class pass # end of class

View File

@@ -3,7 +3,10 @@
import gtk import gtk
class Qst(object): class Qst(object):
"""Show simple dialog for questions""" """Show simple dialog for questions
if "OK" button pressed, return "True"
"Cancel" button return "False"
"""
def __init__(self, title="", message=""): def __init__(self, title="", message=""):
self.dialog = gtk.MessageDialog( self.dialog = gtk.MessageDialog(
flags = gtk.DIALOG_DESTROY_WITH_PARENT, flags = gtk.DIALOG_DESTROY_WITH_PARENT,