Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Restoring Tix menus to system defaults

Reply
Thread Tools

Restoring Tix menus to system defaults

 
 
Edward K. Ream
Guest
Posts: n/a
 
      11-25-2004
Tix appears to ruin the highlighting of menu items by default, at least with
Python 2.3.4 on XP. That is, changing

root = Tkinter.Tk()

to

root = Tix.Tk()

causes the app not to honor the system default way of highlighting menu
items. BTW, I am aware of the discussion in WmDefault.txt.

One can set highlighting by hand as follows:

try:
import WmDefault
WmDefault.setup(root)
WmDefault.addoptions(root,{'activebackground':'Dar kBlue','activeforeground':'white'})
except ImportError: [snip]

Alas, this suffers two big problems:

1. WmDefault will not be on the user's path by default; the import may
fail.
2. The code above doesn't restore the system default.

Can someone suggest a better solution? In particular,

1. Is there a workaround not using WmDefault?

2. Are there settings for 'activebackground' and 'activeforeground' that
restore the system defaults? Using '' as the color does not work.

Thanks very much.

Edward
--------------------------------------------------------------------
Edward K. Ream email:
Leo: Literate Editor with Outlines
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------


 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select menus above flyout menus? help? news.west.cox.net HTML 8 12-09-2004 12:54 PM
restoring a generic system,wihtout the disk carl MCSE 1 09-14-2004 05:01 PM
restoring access to 'system' in control panel Cj Wilson Computer Support 4 05-16-2004 04:20 PM
Restoring Download Defaults in IE 6 Sens Fan Happy In Florida Computer Support 2 10-12-2003 11:56 PM
Restoring system files from CD Phil Computer Support 8 07-27-2003 10:54 PM



Advertisments