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:
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user