コード例 #1
0
ファイル: matrix.py プロジェクト: proteanblank/PySolFC
 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
ファイル: mahjongg.py プロジェクト: TrevorLowing/PyGames
 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
ファイル: matrix.py プロジェクト: TrevorLowing/PyGames
 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)