473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Tkinter optionDB question

Hello, everyone!

I want to use an optionDB file to get rid of some of the ugly Tkinter
defaults, now at the moment it looks like this:

*font : Helvetica -12
*Entry*background : white
*Text*background : white
*Listbox*background : white

This works fine, however I do not seem to be able to change other
options, like:

*Listbox*selectbackground : blue

and similar things i have tried do not have any effect.
I don't know if this is a syntax problem with the optionDB file or if
it is simply not possible to set some options there.
Does anyone know a manual where I can get a list of possible options
and the correct syntax? Any help would be very appreciated.

Thanks in advance

Michael
Jul 18 '05 #1
2 1821
On Wed, 2003-10-29 at 12:40, klappnase wrote:
Hello, everyone!

I want to use an optionDB file to get rid of some of the ugly Tkinter
defaults, now at the moment it looks like this:

*font : Helvetica -12
*Entry*background : white
*Text*background : white
*Listbox*background : white

This works fine, however I do not seem to be able to change other
options, like:

*Listbox*selectbackground : blue

and similar things i have tried do not have any effect.
I don't know if this is a syntax problem with the optionDB file or if
it is simply not possible to set some options there.
Does anyone know a manual where I can get a list of possible options
and the correct syntax? Any help would be very appreciated.

Thanks in advance

Michael


http://www.tcl.tk/man/tcl8.4/TkCmd/options.htm

Example:

Command-Line Name: -activebackground
Database Name: activeBackground
Database Class: Foreground
So the Database Name is what (I think you want!)

Cheers
Martin
--
Martin Franklin <mf********@gatwick.westerngeco.slb.com>
Jul 18 '05 #2
Martin Franklin <mf********@gatwick.westerngeco.slb.com> wrote in message news:<ma************************************@pytho n.org>...

http://www.tcl.tk/man/tcl8.4/TkCmd/options.htm

Example:

Command-Line Name: -activebackground
Database Name: activeBackground
Database Class: Foreground
So the Database Name is what (I think you want!)

Cheers
Martin


Thanks,

you are right, that is exactly what I was looking for.

Cheers

Michael
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Adonis | last post by:
I am creating some widgets by inheriting from Tkinter.Frame and populating the frame with whatever the widget will be then creating certain attributes/methods to be accessed later. My question is,...
25
by: BJörn Lindqvist | last post by:
See: http://www.wxpython.org/quotes.php. especially: "wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard...
8
by: Erik Johnson | last post by:
I am looking for some input on GUI libraries. I want to build a Python-driven GUI, but don't really understand the playing field very well. I have generally heard good things about wxPython. I...
0
by: ³Â Ñô | last post by:
I write a program with Python 2.4 + Tkinter Execute it, there will be a window show something. If I minimize it, it will be minimized to the taskbar. But I would like it to miniminze to the System...
1
by: syed_saqib_ali | last post by:
Please take a look at and run the code snippet shown below. It creates a canvas with vertical & Horizontal scroll-bars. If you shrink the window to smaller than the area of the canvas, the...
0
by: Ron Adam | last post by:
I want to be able to easily create reusable shapes in Tkinter and be able to use them in mid level dialogs. So after some experimenting I've managed to get something to work. The following does...
2
by: Kevin Walzer | last post by:
I'm trying to decide whether I need threads in my Tkinter application or not. My app is a front end to a command-line tool; it feeds commands to the command-line program, then reads its output and...
0
by: Guilherme Polo | last post by:
2008/5/10 Kenneth McDonald <kenneth.m.mcdonald@sbcglobal.net>: I will say no to the first question. Now about the second question.. there are these links you may find interesting: "An...
3
by: joshdw4 | last post by:
I hate to do this, but I've thoroughly exhausted google search. Yes, it's that pesky root window and I have tried withdraw to no avail. I'm assuming this is because of the methods I'm using. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.