當前位置: 首頁>>代碼示例>>Python>>正文


Python Main.__version__方法代碼示例

本文整理匯總了Python中Main.__version__方法的典型用法代碼示例。如果您正苦於以下問題:Python Main.__version__方法的具體用法?Python Main.__version__怎麽用?Python Main.__version__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Main的用法示例。


在下文中一共展示了Main.__version__方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

# 需要導入模塊: import Main [as 別名]
# 或者: from Main import __version__ [as 別名]
def __init__(self, parent):
        wx.Dialog.__init__(self, parent, wx.ID_ANY, "About NodeMCU PyFlasher")
        html = HtmlWindow(self, wx.ID_ANY, size=(420, -1))
        if "gtk2" in wx.PlatformInfo or "gtk3" in wx.PlatformInfo:
            html.SetStandardFonts()
        txt = self.text.format(self._get_bundle_dir(), __version__)
        html.SetPage(txt)
        ir = html.GetInternalRepresentation()
        html.SetSize((ir.GetWidth() + 25, ir.GetHeight() + 25))
        self.SetClientSize(html.GetSize())
        self.CentreOnParent(wx.BOTH) 
開發者ID:marcelstoer,項目名稱:nodemcu-pyflasher,代碼行數:13,代碼來源:About.py

示例2: __popup_about

# 需要導入模塊: import Main [as 別名]
# 或者: from Main import __version__ [as 別名]
def __popup_about(self, event=None):
        from Main import __version__
        tkMessageBox.showinfo('About Pynche ' + __version__,
                              '''\
Pynche %s
The PYthonically Natural
Color and Hue Editor

For information
contact: Barry A. Warsaw
email:   bwarsaw@python.org''' % __version__) 
開發者ID:aliyun,項目名稱:oss-ftp,代碼行數:13,代碼來源:PyncheWidget.py

示例3: parse_data

# 需要導入模塊: import Main [as 別名]
# 或者: from Main import __version__ [as 別名]
def parse_data(self):
        self.medallions = OrderedDict([('Misery Mire', self.world.required_medallions[0]), ('Turtle Rock', self.world.required_medallions[1])])
        self.locations = {'other locations': OrderedDict([(str(location), str(location.item)) if location.item is not None else 'Nothing' for location in self.world.get_locations()])}
        from Main import __version__ as ERVersion
        self.metadata = {'version': ERVersion,
                         'seed': self.world.seed,
                         'logic': self.world.logic,
                         'mode': self.world.mode,
                         'goal': self.world.goal,
                         'shuffle': self.world.shuffle,
                         'algorithm': self.world.algorithm,
                         'difficulty': self.world.difficulty,
                         'completeable': not self.world.check_beatable_only,
                         'dungeonitems': self.world.place_dungeon_items,
                         'quickswap': self.world.quickswap} 
開發者ID:LLCoolDave,項目名稱:ALttPEntranceRandomizer,代碼行數:17,代碼來源:BaseClasses.py

示例4: __popup_about

# 需要導入模塊: import Main [as 別名]
# 或者: from Main import __version__ [as 別名]
def __popup_about(self, event=None):
        from Main import __version__
        messagebox.showinfo('About Pynche ' + __version__,
                              '''\
Pynche %s
The PYthonically Natural
Color and Hue Editor

For information
contact: Barry A. Warsaw
email:   bwarsaw@python.org''' % __version__) 
開發者ID:guohuadeng,項目名稱:odoo13-x64,代碼行數:13,代碼來源:PyncheWidget.py


注:本文中的Main.__version__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。