龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > python编程 >

python之wxPython菜单使用详解(2)

时间:2014-09-29 02:46来源:网络整理 作者:网络 点击:
分享到:
Example: m_pFileMenu-Append(ID_NEW_FILE, " or even better for stock menu items (see wxMenuItem::wxMenuItem): m_pFileMenu-Append(wxID_NEW, "", "Creates a new XYZ document"); Remarks: This command can b

Example:
        m_pFileMenu->Append(ID_NEW_FILE, "&New file\tCTRL+N", "Creates a new XYZ document");
or even better for stock menu items (see wxMenuItem::wxMenuItem):
        m_pFileMenu->Append(wxID_NEW, "", "Creates a new XYZ document");
Remarks:
This command can be used after the menu has been shown, as well as on initial creation of a menu or menubar.

希望本文所述对大家的Python程序设计有所帮助。

精彩图集

赞助商链接