Exemplo n.º 1
0
 def __init__(self, title, action=None, menu=None, right_action=None, visible=False, enabled=True, has_sip=True, has_ok=True):
     CeFrame.__init__(self, None, title, action=action, menu=menu, right_action=right_action, visible=visible, enabled=enabled, has_sip=has_sip)
     self.bind(close=self._onclose)
     #self.has_ok = has_ok
     self.poppingup = False
     if has_ok:
         SHDoneButton(self._w32_hWnd, 1)
Exemplo n.º 2
0
 def _create_tr_button(self):
     if self.has_ok:
         self.top_right_button = Button(self,
                                        'Ok',
                                        action=lambda ev: self.onok())
     else:
         CeFrame._create_tr_button(self)
Exemplo n.º 3
0
 def __init__(self,
              title,
              action=None,
              menu=None,
              visible=False,
              enabled=True,
              has_sip=True,
              has_ok=True):
     self.has_ok = has_ok
     CeFrame.__init__(self,
                      None,
                      title,
                      action=action,
                      menu=menu,
                      visible=visible,
                      enabled=enabled,
                      has_sip=has_sip)
     self.bind(close=self._onclose)
     #self.has_ok = has_ok
     self.poppingup = False
Exemplo n.º 4
0
 def __init__(self,
              title,
              action=None,
              menu=None,
              right_action=None,
              visible=False,
              enabled=True,
              has_sip=True,
              has_ok=True):
     CeFrame.__init__(self,
                      None,
                      title,
                      action=action,
                      menu=menu,
                      right_action=right_action,
                      visible=visible,
                      enabled=enabled,
                      has_sip=has_sip)
     self.bind(close=self._onclose)
     #self.has_ok = has_ok
     self.poppingup = False
     if has_ok:
         SHDoneButton(self._w32_hWnd, 1)
Exemplo n.º 5
0
 def _create_tr_button(self):
     if self.has_ok:
         self.top_right_button = Button(self, 'Ok', action=lambda ev: self.onok())
     else:
         CeFrame._create_tr_button(self)
Exemplo n.º 6
0
 def __init__(self, title, action=None, menu=None, visible=False, enabled=True, has_sip=True, has_ok=True):
     self.has_ok = has_ok
     CeFrame.__init__(self, None, title, action=action, menu=menu, visible=visible, enabled=enabled, has_sip=has_sip)
     self.bind(close=self._onclose)
     #self.has_ok = has_ok
     self.poppingup = False