当前位置: 首页>>代码示例>>Python>>正文


Python MfxDialog.mDone方法代码示例

本文整理汇总了Python中tkwidget.MfxDialog.mDone方法的典型用法代码示例。如果您正苦于以下问题:Python MfxDialog.mDone方法的具体用法?Python MfxDialog.mDone怎么用?Python MfxDialog.mDone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在tkwidget.MfxDialog的用法示例。


在下文中一共展示了MfxDialog.mDone方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: mDone

# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import mDone [as 别名]
 def mDone(self, button):
     if button == 0:  # Ok or double click
         self.gameid = self.tree.selection_key
         self.tree.n_expansions = 1  # save xyview in any case
     if button == 1:  # Rules
         doc = self.app.getGameRulesFilename(self.tree.selection_key)
         if not doc:
             return
         dir = os.path.join("html", "rules")
         help_html(self.app, doc, dir, self.top)
         return
     MfxDialog.mDone(self, button)
开发者ID:shlomif,项目名称:PySolFC,代码行数:14,代码来源:selectgame.py

示例2: mDone

# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import mDone [as 别名]
 def mDone(self, button):
     ##self.selected_game = self.all_games_frame.getSelectedGame()
     w = self.notebook.select()
     indx = self.notebook_tabs.index(w)
     LogDialog.SELECTED_TAB = indx
     if button == 500:               # "Save to file"
         assert indx in (0, 1)
         if indx == 0:               # "Full log"
             button = 203
         else:                       # "Session log"
             button = 204
     MfxDialog.mDone(self, button)
开发者ID:TrevorLowing,项目名称:PyGames,代码行数:14,代码来源:tkstats.py

示例3: mDone

# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import mDone [as 别名]
 def mDone(self, button):
     if button in (0, 1):               # Ok/Load
         self.key = self.tree.selection_key
         self.tree.n_expansions = 1  # save xyview in any case
     if button in (3, 4):
         cs = self.manager.get(self.tree.selection_key)
         if not cs:
             return
         ##title = CARDSET+" "+cs.name
         title = CARDSET.capitalize()+" "+cs.name
         CardsetInfoDialog(self.top, title=title, cardset=cs, images=self.preview_images)
         return
     MfxDialog.mDone(self, button)
开发者ID:TrevorLowing,项目名称:PyGames,代码行数:15,代码来源:selectcardset.py

示例4: mDone

# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import mDone [as 别名]
 def mDone(self, button):
     if button == 0:        # "OK" or double click
         if isinstance(self.tree.selection_key, basestring):
             self.key = str(self.tree.selection_key)
         else:
             self.key = self.tree.selection_key
         self.tree.n_expansions = 1  # save xyview in any case
     if button == 10:        # "Solid color..."
         try:
             c = tkColorChooser.askcolor(master=self.top,
                                         initialcolor=self.table_color,
                                         title=_("Select table color"))
         except Tkinter.TclError:
             pass
         else:
             if c and c[1]:
                 color = str(c[1])
                 self.key = color.lower()
                 self.table_color = self.key
                 self.tree.updateSelection(self.key)
                 self.updatePreview(self.key)
         return
     MfxDialog.mDone(self, button)
开发者ID:iske,项目名称:PySolFC,代码行数:25,代码来源:selecttile.py

示例5: mDone

# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import mDone [as 别名]
 def mDone(self, button):
     if button == 0 or button == 1:
         self.app.opt.sound = self.sound.get()
         self.app.opt.sound_mode = int(self.sound_mode.get())
         self.app.opt.sound_sample_volume = self.sample_volume.get()
         self.app.opt.sound_music_volume = self.music_volume.get()
         for n, t, v in self.samples:
             self.app.opt.sound_samples[n] = v.get()
     elif button == 2:
         self.app.opt = self.saved_opt
     if self.app.audio:
         self.app.audio.updateSettings()
         if button == 1:
             self.app.audio.playSample("drop", priority=1000)
     if button == 1:
         return EVENT_HANDLED
     return MfxDialog.mDone(self, button)
开发者ID:TrevorLowing,项目名称:PyGames,代码行数:19,代码来源:soundoptionsdialog.py

示例6: mDone

# 需要导入模块: from tkwidget import MfxDialog [as 别名]
# 或者: from tkwidget.MfxDialog import mDone [as 别名]
 def mDone(self, button):
     if USE_PIL and button == 0:
         self.cardset_values = self.x_offset.get(), self.y_offset.get()
     else:
         self.cardset_values = None
     MfxDialog.mDone(self, button)
开发者ID:iske,项目名称:PySolFC,代码行数:8,代码来源:selectcardset.py


注:本文中的tkwidget.MfxDialog.mDone方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。