Ejemplo n.º 1
0
 def initBindings(self):
     bind(self.group, self._calcMouseBind("<{mouse_button1}>"),
          self._Stack__clickEventHandler)
     bind(
         self.group,
         self._calcMouseBind("<Control-{mouse_button1}>"),
         self._Stack__controlclickEventHandler,
     )
Ejemplo n.º 2
0
 def initBindings(self):
     group = self.group
     # FIXME: dirty hack to access the Stack's private methods
     #bind(group, "<1>", self._Stack__clickEventHandler)
     #bind(group, "<3>", self._Stack__controlclickEventHandler)
     #bind(group, "<Control-1>", self._Stack__controlclickEventHandler)
     #
     bind(group, "<1>", self.__clickEventHandler)
     bind(group, "<3>", self.__controlclickEventHandler)
     bind(group, "<Control-1>", self.__controlclickEventHandler)
Ejemplo n.º 3
0
 def initBindings(self):
     group = self.group
     # FIXME: dirty hack to access the Stack's private methods
     # bind(group, "<1>", self._Stack__clickEventHandler)
     # bind(group, "<3>", self._Stack__controlclickEventHandler)
     # bind(group, "<Control-1>", self._Stack__controlclickEventHandler)
     #
     bind(group, "<1>", self.__clickEventHandler)
     bind(group, "<3>", self.__controlclickEventHandler)
     bind(group, "<Control-1>", self.__controlclickEventHandler)
Ejemplo n.º 4
0
 def initBindings(self):
     group = self.group
     # FIXME: dirty hack to access the Stack's private methods
     # bind(group, "<1>", self._Stack__clickEventHandler)
     # bind(group, "<3>", self._Stack__controlclickEventHandler)
     # bind(group, "<Control-1>", self._Stack__controlclickEventHandler)
     #
     bind(group, self._calcMouseBind("<{mouse_button1}>"),
          self.__clickEventHandler)
     bind(group, self._calcMouseBind("<{mouse_button3}>"),
          self.__controlclickEventHandler)
     bind(group, self._calcMouseBind("<Control-{mouse_button1}>"),
          self.__controlclickEventHandler)
Ejemplo n.º 5
0
 def initBindings(self):
     bind(self.group, "<1>", self._Stack__clickEventHandler)
     bind(self.group, "<Control-1>", self._Stack__controlclickEventHandler)
Ejemplo n.º 6
0
 def initBindings(self):
     bind(self.group, "<1>", self._Stack__clickEventHandler)
     bind(self.group, "<Control-1>", self._Stack__controlclickEventHandler)
Ejemplo n.º 7
0
 def initBindings(self):
     w = self.parent
     bind(w, "WM_DELETE_WINDOW", self.destroy)
     bind(w, "<Escape>", self.destroy)
     bind(w, "<KeyPress-Prior>", self.page_up)
     bind(w, "<KeyPress-Next>", self.page_down)
     bind(w, "<KeyPress-Up>", self.unit_up)
     bind(w, "<KeyPress-Down>", self.unit_down)
     bind(w, "<KeyPress-Begin>", self.scroll_top)
     bind(w, "<KeyPress-Home>", self.scroll_top)
     bind(w, "<KeyPress-End>", self.scroll_bottom)
     bind(w, "<KeyPress-BackSpace>", self.goBack)