Re: [pygtk] Using gvfs with Python

2009-04-23 Thread Thomas Dybdahl Ahle
Check out this: http://library.gnome.org/devel/pygtk/stable/class-gtkmountoperation.html tor, 23 04 2009 kl. 11:14 -0500, skrev Jens Knutson: > Browse through some of the code for Conduit - that's how I got started > figuring out GIO with Python. Conduit is here: > http://www.conduit-project.org >

Re: [pygtk] Log window

2008-09-18 Thread Thomas Dybdahl Ahle
tor, 18 09 2008 kl. 17:50 +0200, skrev Frédéric: > Is there a way to automatically do this right after the dialog is > opened? > Is there a gtk feature to push an event and have it executed as first > dialog event, right after it enters in its event loop? I use this little 10 liner to hold it do

Re: [pygtk] When to Initialize Non-Main Windows?

2008-05-30 Thread Thomas Dybdahl Ahle
tor, 29 05 2008 kl. 23:53 -1000, skrev Casey McGinty: > Hi, > > Is there a best coding practice for the best point in the program > execution to initialize secondary PyGtk windows? > > For example, all the background windows can be created during program > init, but this might slow down the prog

Re: [pygtk] [Announce] PyGooCanvas 0.10.0

2008-05-02 Thread Thomas Dybdahl Ahle
Do you have online documentation? On Thu, 2008-05-01 at 19:35 +0200, Gian Mario Tagliaretti wrote: > I am pleased to announce version 0.10.0 of the Python bindings for Goocanvas. > > It is available at: > > https://developer.berlios.de/projects/pygoocanvas/ > > The bindings are updated with the

[pygtk] Manually refuse/accept notebook tab drop

2008-03-27 Thread Thomas Dybdahl Ahle
Hi, I'm having some problems with the notebook set_tab_detachable from gtk 2.10. If I set book.drag_dest_set(gtk.DEST_DEFAULT_MOTION, [("GTK_NOTEBOOK_TAB", gtk.TARGET_SAME_APP, 0xbadbeef)], gtk.gdk.ACTION_MOVE) on my notebook, I don't recieve any "drag-drop" events. If I set the same group_id on

Re: [pygtk] is there any script like this?

2008-03-26 Thread Thomas Dybdahl Ahle
On Tue, 2008-03-25 at 19:20 -0300, Guilherme Polo wrote: > 2008/3/25, Thomas Dybdahl Ahle <[EMAIL PROTECTED]>: > > Yeah, Karl Latimer wrote a such script once: > > http://www.qdh.org.uk/wordpress/?p=204 > > If I had some reason to not use the .glade file I woul

Re: [pygtk] is there any script like this?

2008-03-25 Thread Thomas Dybdahl Ahle
Yeah, Karl Latimer wrote a such script once: http://www.qdh.org.uk/wordpress/?p=204 On Tue, 2008-03-25 at 10:07 -0700, Beshr wrote: > is there any python script existed that can convert a *.glade file > into python code? not just making the connection.. I mean creating the > whole code so there's

[pygtk] Flat, expandable treeview

2008-03-09 Thread Thomas Dybdahl Ahle
Hey, How do you make the treeview expanders flat (no indent) like in pidgin? -- Best Regards, Med Venlig Hilsen, Thomas ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/fa

Re: [pygtk] Running a CLI program

2008-02-10 Thread Thomas Dybdahl Ahle
On Sun, 2008-02-10 at 23:13 +0100, Vláďa wrote: > Hello, > > I'm working on a multimedia converter. I plan to use CLI encoders (lame, > x264, xvid_encraw etc.) > > But I don't know hot to run these programs effectively from PyGTK. I > need it to run on Windows at least. > > I don't know hot t

Re: [pygtk] Re: Guide of PyGTK and Threads

2008-02-10 Thread Thomas Dybdahl Ahle
On Mon, 2008-02-11 at 11:15 +1300, John Stowers wrote: > On Sun, 2008-02-10 at 22:56 +0100, Thomas Dybdahl Ahle wrote: > > Do you know about: > > http://www.pardon-sleeuwaegen.be/antoon/python/page0.html > > I like very much, that it takes up all the ways you can do threading

Re: [pygtk] Re: Guide of PyGTK and Threads

2008-02-10 Thread Thomas Dybdahl Ahle
Do you know about: http://www.pardon-sleeuwaegen.be/antoon/python/page0.html I like very much, that it takes up all the ways you can do threading in pygtk, so you can compare them. On Mon, 2008-02-11 at 09:01 +1300, John Stowers wrote: > On Sun, 2008-02-03 at 22:44 -0200, Matí­as Alejandro Torres

[pygtk] WebKit for canvas

2008-01-05 Thread Thomas Dybdahl Ahle
Hey, I'm thinking of moving the PyChess chess board display to a WebKit implementation to better allow theming - just like programs like pidgin seams to be doing. I see I have webkit-gtk+ in the fedora repository, but I wondered if you knew the status of the (if any) python bindings? Also, I thou

Re: [pygtk] Treeview and sqlite

2007-11-18 Thread Thomas Dybdahl Ahle
lør, 17 11 2007 kl. 14:27 +0100, skrev Marcel Stoop: > Hey all, > > First of all I new to python and reading a lot of documentation, but > somehow I can't seem to find good information regarding the question > below. > I'm trying to develop a python/pygtk application which need to store the > data

[pygtk] Test for alsa/sound

2007-11-16 Thread Thomas Dybdahl Ahle
Hey, is it possible to detect wether sound is available on a system, so I can turn it off, before gstreamer starts sending me errors like: Could not open resource for writing. gstalsasink.c(640): gst_alsasink_open (): /audiosink-actual-sink-alsa: Playback open error on device 'default': No such dev

[pygtk] gtk.Border values

2007-10-05 Thread Thomas Dybdahl Ahle
Hi, On http://www.pygtk.org/pygtk2reference/class-gtkborder.html it states that gtk.Border holds values for top, bottom, left and right, but I can't find them, neither like border.top, border["top"] nor border.props.top. Can anybody help me finding them? -- Med venlig hilsen, Best regards, Thomas

[pygtk] Paint widget to pixbuf

2007-10-05 Thread Thomas Dybdahl Ahle
Hi, I've been looking for a way to paint a Button on a Pixmap. In c-gtk I've seen it done like this: gdk_draw_drawable (window, widget->style->black_gc, GTK_PROGRESS (pbar)->offscreen_pixmap, 0,0,0,0,-1,-1); But I haven't been able to find the offscreen_pixmap attrib

[pygtk] gconf notify problems

2006-08-22 Thread Thomas Dybdahl Ahle
Hi, I'm trying to write a program using pygtk and gconf. I can't make the gconf.notify_add thing work though. It never calls the specified function. Even when everything updates live in gconf-editor. I made this small demo, to illustrate what doesnt work import gconf,gobject,thread thread.start_n