[pygtk] TreeModel from Dot Notation

2008-08-17 Thread Patty Ackermann
Hi, I am trying to make a treeview out of some data, namely produce. The data contains an arbitrary number of items, with each item representing a series a levels. For example, produce_list = [Fruit.Apple.Green, Fruit.Orange.Tangerine, Fruit.Banana, Vegetable.Tomato.Red.Ripe,...] The treemodel I

Re: [pygtk] PyGTK and threading

2008-08-17 Thread John Ehresman
Vláďa wrote: > Thanks a lot for your replies. I know it is to difficult to describe it > in one post. I was looking for some information or guides, but I > couldn't find a working one. For example all the samples at > http://www.pardon-sleeuwaegen.be/antoon/python/page0.html freeze for me > rig

Re: [pygtk] PyGTK and threading

2008-08-17 Thread Vláďa
Thanks a lot for your replies. I know it is to difficult to describe it in one post. I was looking for some information or guides, but I couldn't find a working one. For example all the samples at http://www.pardon-sleeuwaegen.be/antoon/python/page0.html freeze for me right after start on Windo

Re: [pygtk] PyGTK and threading

2008-08-17 Thread Paul Pogonyshev
Vláďa wrote: > [...] > However the are some things which are unclear to me. First I read that I > have to use gtk.gdk.threads_enter() and gtk.gdk.threads_leave() whenever > I want to modify something in main GUI. But if I remove these commands I > don't see any change. It still works. What exact

[pygtk] PyGTK and threading

2008-08-17 Thread Vláďa
Hello, I'm looking for an up to date information about threading in PyGTK. I found some tutorials on net, but they look outdated to me. The one example which worked after some modifications is this: [code] import pygtk pygtk.require('2.0') import gtk from threading import * import time import g

[pygtk] what are the attributes for making widgets accessible to screen readers?

2008-08-17 Thread Krishnakant Mane
hello all, I am a totally blind person developing an application using python. the gui is made obviously in pygtk. but strangely enough there is a diffference in behaviour when I run other pygtk applications and mine with the same screen reader on gnome. for example when I tab around in a gtk frame

Re: [pygtk] Min and max values of multiple spinbuttons

2008-08-17 Thread Frédéric
On dimanche 17 août 2008, Timo wrote: > Hello, I have 3 spinbuttons in my program. What I want is that > spinbutton 1 has always the lowest value and can not be more than > spinbutton 2. Spinbutton 2 should always be between 1 and 3. And > spinbvutton 3 should always have the biggest value. > So i

Re: [pygtk] Min and max values of multiple spinbuttons

2008-08-17 Thread Vláďa
If I understand your problem right, it shouldn't be difficult. There is a method set_range(min,max) (http://www.pygtk.org/docs/pygtk/class-gtkspinbutton.html#method-gtkspinbutton--set-range), which you can use. So whenever you change a value of one of your spinbutton, you have to adjust the ra

[pygtk] Min and max values of multiple spinbuttons

2008-08-17 Thread Timo
Hello, I have 3 spinbuttons in my program. What I want is that spinbutton 1 has always the lowest value and can not be more than spinbutton 2. Spinbutton 2 should always be between 1 and 3. And spinbvutton 3 should always have the biggest value. So is there a way to stop spinbutton 1 when it rea