Where to find options for add_command?

M

Muddy Coder

Hi Folks,

When I make Menu, and add in menu items, by using add_command, such
as:

menuObj.add_command(label='Open File', command=self.open_file)

It works. But, I want to make the GUI looking better. So, I want to
change color, font, size, background, for the label of Open File. I
got clobbered. I tried relief, fg, color, no one worked. Can somebody
points me a website to visit, to check out what options available for
add_command? Thanks!


Muddy Coder
 
S

Steven D'Aprano

Hi Folks,

When I make Menu, and add in menu items, by using add_command, such as:

menuObj.add_command(label='Open File', command=self.open_file)

It works. But, I want to make the GUI looking better. So, I want to
change color, font, size, background, for the label of Open File. I got
clobbered. I tried relief, fg, color, no one worked. Can somebody points
me a website to visit, to check out what options available for
add_command? Thanks!


This website will tell you what you need to solve your problem:

http://www.catb.org/~esr/faqs/smart-questions.html
 
J

John Machin

Hi Folks,

When I make Menu, and add in menu items, by using add_command, such
as:

menuObj.add_command(label='Open File', command=self.open_file)

It works. But, I want to make the GUI looking better. So, I want to
change color, font, size, background, for the label of Open File. I
got clobbered. I tried relief, fg, color, no one worked. Can somebody
points me a website to visit, to check out what options available for
add_command? Thanks!

If you tell us the name of the module or package that contains the
Menu class or factory function that you are calling, we should be able
to search the web to find the documentation for you.

If you tell yourself the name of the module or package that contains
the Menu class etc that you are calling, you should be able to search
the web to find the documentation for yourself. Hint: bookmark the
link when you find it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,292
Messages
2,571,494
Members
48,183
Latest member
GarfieldBa

Latest Threads

Top