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)
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)
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
def __init__(self, master, title = '', dlgname = '__dialog__'): self.master=master self.title = title ModalDialog.__init__(self, master, name = dlgname)
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)
def __init__(self, master, dlgname='__dialog__'): self.master = master self.title = _("Open") self.init_vars() ModalDialog.__init__(self, master, name=dlgname)
def __init__(self, master, title='', dlgname='__dialog__'): self.master = master self.title = title ModalDialog.__init__(self, master, name=dlgname)
def __init__(self, master, dlgname='__dialog__'): self.master = master self.title = _("About sK1") ModalDialog.__init__(self, master, name=dlgname)
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)