예제 #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,
     )
예제 #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)
예제 #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)
예제 #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)
예제 #5
0
 def initBindings(self):
     bind(self.group, "<1>", self._Stack__clickEventHandler)
     bind(self.group, "<Control-1>", self._Stack__controlclickEventHandler)
예제 #6
0
파일: matrix.py 프로젝트: hayate891/PySolFC
 def initBindings(self):
     bind(self.group, "<1>", self._Stack__clickEventHandler)
     bind(self.group, "<Control-1>", self._Stack__controlclickEventHandler)
예제 #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)