Ejemplo n.º 1
0
    def __init__(self, parent, title=None, content=""):
        Toplevel.__init__(self, parent)
        self.transient(parent)
        self.log = logging.getLogger(__name__)

        if title:
            self.title(title)

        self.parent = parent
        self.body = Frame(self)
        self.fill_body(content)
        self.body.pack(padx=5, pady=5)

        self.create_buttonbox()

        self.grab_set()

        self.protocol("WM_DELETE_WINDOW", self.ok)

        self.geometry("+%d+%d" %
                      (parent.winfo_rootx() + 50, parent.winfo_rooty() + 50))

        self.focus_set()

        self.wait_window(self)
 def __init__(self, message, value=None, **extra):
     self._prevent_execution_with_timeouts()
     self._parent = self._get_parent()
     Toplevel.__init__(self, self._parent)
     self._initialize_dialog()
     self._create_body(message, value, **extra)
     self._create_buttons()
     self._result = None
Ejemplo n.º 3
0
 def __init__(self, message, value=None, **extra):
     self._prevent_execution_with_timeouts()
     self._parent = self._get_parent()
     Toplevel.__init__(self, self._parent)
     self._initialize_dialog()
     self._create_body(message, value, **extra)
     self._create_buttons()
     self._result = None
Ejemplo n.º 4
0
    def __init__(self, sms):
        Toplevel.__init__(self)

        self._sms = sms

        self.title("SMS from %s" % sms["address"])

        v = SMSView(sms, self)
        v.pack(fill=BOTH, expand=True)
Ejemplo n.º 5
0
 def __init__(self, *args, **kw):
     self.var = None
     Toplevel.__init__(self, *args, **kw)