PDA

View Full Version : Unhidden Menu


Jerry
07-01-2007, 10:20 AM
How do make a vizMenu stay unhidden when you move the mouse away from it?
Also, how do you change the font size?

farshizzo
07-02-2007, 09:29 AM
Hi Jerry,

To make the menu stay unhidden, use the following command:
menu.setAutoHide(False)To change the font size of the menu you can do the following:import vizmenu
vizmenu.MENU_FONT_SIZE = 32
menu = vizmenu.add()

Jerry
07-02-2007, 09:47 AM
The vizmenu.MENU_FONT_SIZE method changes the font size for sub menus but not the main menu. This is strange because if I change the value of MENU_FONT_SIZE in vizmenu.py it does affect the size of the main menu text. I realize I shouldn't mess with vizmenu.py, so is there a way to change the text size of all menus from within my script?

Jerry
07-02-2007, 09:50 AM
Neve mind. The problem was that I added vizmenu.MENU_FONT_SIZE = 24 after having added some menus. I guess it has to be added just after import vizmenu.