GIDForums  

Go Back   GIDForums > Computer Programming Forums > Python Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 03-Oct-2008, 01:58
sarabhjeet sarabhjeet is offline
New Member
 
Join Date: Jan 2008
Posts: 10
sarabhjeet is on a distinguished road

wx.Button in place of wx.Menu and wx.Notebook


Hello 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  
Old 03-Oct-2008, 09:19
crystalattice's Avatar
crystalattice crystalattice is offline
Aspiring author
 
Join Date: Apr 2004
Location: Japan (again)
Posts: 1,627
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: wx.Button in place of wx.Menu and wx.Notebook


Have 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  
Old 08-Oct-2008, 01:33
sarabhjeet sarabhjeet is offline
New Member
 
Join Date: Jan 2008
Posts: 10
sarabhjeet is on a distinguished road

Re: wx.Button in place of wx.Menu and wx.Notebook


But i want to create a menu and notebook by using button only...
  #4  
Old 08-Oct-2008, 09:11
crystalattice's Avatar
crystalattice crystalattice is offline
Aspiring author
 
Join Date: Apr 2004
Location: Japan (again)
Posts: 1,627
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: wx.Button in place of wx.Menu and wx.Notebook


Quote:
Originally Posted by sarabhjeet
But i want to create a menu and notebook by using button only...
If you want a bonafide window menu, you're pretty much stuck with the built-in widgets. If you use wxGlade to create your application, you may be able to tweak the settings some but I haven't seen a way to do it.

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 GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 01:59.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.