![]() |
|
#1
|
|||
|
|||
wx.Button in place of wx.Menu and wx.NotebookHello all,
I want to create a menu without using wx.Menu,shall i do this task using wx.Button.Actually wx.Menu uses the windows style so we can't change the font,font size and background etc of menus,in short we don't have total controls on wx.Menu,so if we able to implement it through buttons then scenario will be totally diffenrent. In case of wx.Buttons we can do it anything we want like we can change font,font size,change its background colour,can give the different styles and it will look bit jazzy.So,please tell me about this,whether it is feasible or not. |
|||
|
#2
|
||||
|
||||
Re: wx.Button in place of wx.Menu and wx.NotebookHave you looked at the latest wxPython demo? You may want to try the Toolbar widget or the Toolbook frame.
__________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#3
|
|||
|
|||
Re: wx.Button in place of wx.Menu and wx.NotebookBut i want to create a menu and notebook by using button only...
|
|
#4
|
||||
|
||||
Re: wx.Button in place of wx.Menu and wx.NotebookQuote:
The use of wxPython is to use the standard widgets of the underlying OS; it reduces development time and creates a standard look for all applications. Generally speaking, if your problem is with the size of the menu font, it can be adjusted within Windows' desktop preferences. It's extremely difficult to do it on a per application basis. I haven't found anything in the wxPython documentation that shows menus are adjustable in this sense. If you absolutely must avoid the menu bar, then I think your next best option will be the Toolbar widgets I suggested before. Then you can make custom buttons and tie them into the same things a menu will do. Just realize that you will have to create a button for every single option you would normally have for the menu. The Toolbar would be similiar to the buttons found in MS Office; they simply replicate behaviour found in the menu. But try changing the preferences of Windows first and see if that helps you with your menu configuration. It will be easier to use the wxPython Menubar than try to custom-create one. __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The