Re: [pygtk] gtk.Builder, dialogs, and dedicated controller classes

2011-02-14 Thread Robert Park
On Fri, Feb 11, 2011 at 3:36 AM, Harold wrote: > So, what is the best strategy to use Glade for my controllers while > retaining separation of control in the program? Are there established > best practices? Well, you don't have to pass an object to auto_connect, you can also pass a dict. This way

Re: [pygtk] select multiple folders/ directories

2011-02-14 Thread Timo
On 13-01-11 02:12, Sujay wrote: Hi, Hello, you're probably on the wrong mailinglist. I'm not familiar with the widgets you descibe. Cheers, Timo I'm currently using tkFileDialog.askdirectory() to select a single directory. I would like to be able to select multiple directories. tkFileDialog

[pygtk] gtk.Builder, dialogs, and dedicated controller classes

2011-02-14 Thread Harold
Dear list, I am starting my first more involved project with PyGTK and Glade. My application should have a main window and several dialogs, subwindows etc. Ideally, I would like to create the entire GUI in Glade and use gtk.Builder to load it into my program. I encounter two difficulties, where I

[pygtk] select multiple folders/ directories

2011-02-14 Thread Sujay
Hi, I'm currently using tkFileDialog.askdirectory() to select a single directory. I would like to be able to select multiple directories. tkFileDialog.askopenfilenames() seems to do this for files. What can I do in my situation? Are there alternative classes that provide file dialogs better sui

Re: [pygtk] Gtk programming technique question...

2011-02-14 Thread Patrick Sabin
Don't know, how you get the images. However, if I have to do some gui and some other I/O, I usually use twisted, where you don't have the troubles of synchronizing your data for different threads/processes. You can integrate the twisted reactor into the gtk main loop. http://twistedmatrix.com/d

Re: [pygtk] Gtk programming technique question...

2011-02-14 Thread Adam Tauno Williams
On Mon, 2011-02-14 at 00:32 +, GSO wrote: > Quick coding problem if I may. > I am displaying jpegs from CCTV cameras in a HBox, but need some way > to refresh the images in that box. I need to show the main window, > but then refresh the images in that window. How would I do this given > aft