コード例 #1
0
ファイル: dialog.py プロジェクト: xeddmc/singularity
 def make_listbox(self):
     return listbox.Listbox(
         self,
         (0, 0),
         (-1, -.85),
         anchor=constants.TOP_LEFT,
         on_double_click_on_item=self.yes_button.activated,
     )
コード例 #2
0
 def make_listbox(self):
     return listbox.Listbox(
         self, (0, -.09), (-1, -.77),
         list_item_height=0.04,
         list_item_shrink=1,
         anchor=constants.TOP_LEFT,
         align=constants.LEFT,
         on_double_click_on_item=self.handle_double_click,
         item_borders=False,
         item_selectable=True)