예제 #1
0
	def __init__(self, master, title, message, buttons = _("OK"), default = 0, icon = 'warning', dlgname = '__dialog__'):
		self.title = title
		self.message = message
		if type(buttons) != type(()):
			buttons = (buttons,)
		self.buttons = buttons
		self.default = -1
		self.image = icon
		ModalDialog.__init__(self, master, name = dlgname)
예제 #2
0
 def __init__(self,
              master,
              title,
              message,
              buttons=_("OK"),
              default=0,
              icon='warning',
              dlgname='__dialog__'):
     self.title = title
     self.message = message
     if type(buttons) != type(()):
         buttons = (buttons, )
     self.buttons = buttons
     self.default = -1
     self.image = icon
     ModalDialog.__init__(self, master, name=dlgname)
예제 #3
0
 def RunDialog(self, callback, *arg):
     app.info_win = self.top
     self.wait = 0
     ModalDialog.RunDialog(self)
     self.top.update()
     result = callback(arg)
     ##### --> return from callback
     self.CloseDialog()
     return result
예제 #4
0
	def __init__(self, master, title = '', dlgname = '__dialog__'):
		self.master=master
		self.title = title
		ModalDialog.__init__(self, master, name = dlgname)
예제 #5
0
	def __init__(self, master, is_before = 0, dlgname = '__dialog__'):
		self.master=master
		self.title = _("Go to page")
		self.is_before=is_before
		self.init_vars()
		ModalDialog.__init__(self, master, name = dlgname)
예제 #6
0
 def __init__(self, master, dlgname='__dialog__'):
     self.master = master
     self.title = _("Open")
     self.init_vars()
     ModalDialog.__init__(self, master, name=dlgname)
예제 #7
0
 def __init__(self, master, title='', dlgname='__dialog__'):
     self.master = master
     self.title = title
     ModalDialog.__init__(self, master, name=dlgname)
예제 #8
0
	def __init__(self, master, dlgname='__dialog__'):
		self.master = master
		self.title = _("Open")
		self.init_vars()
		ModalDialog.__init__(self, master, name=dlgname)
예제 #9
0
파일: aboutdlg.py 프로젝트: kindlychung/sk1
	def __init__(self, master, dlgname='__dialog__'):
		self.master = master
		self.title = _("About sK1")
		ModalDialog.__init__(self, master, name=dlgname)
예제 #10
0
 def __init__(self, master, dlgname='__dialog__'):
     self.master = master
     self.title = _("About sK1")
     ModalDialog.__init__(self, master, name=dlgname)
예제 #11
0
 def __init__(self, master, is_before=0, dlgname='__dialog__'):
     self.master = master
     self.title = _("Insert pages")
     self.is_before = is_before
     self.init_vars()
     ModalDialog.__init__(self, master, name=dlgname)