⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 __init__.py

📁 使用Pygtk写的几个例子
💻 PY
字号:
import os_file_list = [    x for x in os.listdir(os.path.dirname(__file__))    if len(x) > 3 and x[-3:] == '.py']demo_list = []for _mod in _file_list:    # Leave underscored Modulnames.    if _mod.startswith('_'):        continue    _mod = _mod[:-3]    try:        _doc = ''        exec 'import ' + _mod + '\n' + \        '_doc = ' + _mod + '.__doc__'        _description = _doc.splitlines()[0]        demo_list.append((_description, _mod))    except (ImportError, AttributeError), msg:        # ImportError or AttributeError (if _doc is None)        #print 'failed: ', _mod        passdemo_list.sort()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -