[pygtk] Setting the cursor on a Combobox GDK Window

2008-10-16 Thread Shandy Brown
Hi all. I've been struggling with how to set the cursor on the GDK Window that pops up when you click on a combobox. I think I need to use get_root_window() as demonstrated in the snippet below. This works but I'm seeking confirmation that get_root_window() is actually returning what I think it

[pygtk] setting the cursor

2008-08-20 Thread Shandy Brown
Is there a way to change the default cursor? Right now I'm getting the big X-windows "X" every time a new gdk window is created, So I've gotta do set_cursor() to the LEFTPOINTER. Supplementary question: is the "show" event always after the widget has acquired a gdk window? Shandy __

Re: [pygtk] Signal Blocking

2007-11-29 Thread Shandy Brown
if not widget: continue handlerID = widget.connect(signalName.replace('_', '-'), method) self._handlerIDs[(widgetName, signalName)] = (widget, handlerID) print 'All handlers found:' for k,v in self._handle

Re: [pygtk] Signal Blocking

2007-11-28 Thread Shandy Brown
ut, as the attached example will show, I get an error (min_clock.py:29: Warning: gsignal.c:1695: instance `0xb25840' has no handler with id `46') Any guidance would be appreciated. Shandy On Tue, 2007-11-20 at 11:03 -0800, Shandy Brown wrote: > I'm trying to write a clock widget. I

[pygtk] Signal Blocking

2007-11-20 Thread Shandy Brown
I'm trying to write a clock widget. I want it to look nice and to behave in a friendly manner. * It should show colons between the hours, minutes, and seconds * typing the time should "skip" over the colons I've tried to implement this by 5 sequential text entry widgets, each without a frame so

[pygtk] Clock Widget - some issues

2007-05-03 Thread Shandy Brown
Hi all. I'm trying to write a Clock widget. I have some constraints - I'm using Glade and can't use GNOME, so this is just plain GTK. What I've done so far is make 5 GtkEntry widgets side by side (00, :, 00, :, 00). Then beside those, I've put a GtkSpinButton whose width is exactly the size of

Re: [pygtk] DrawingArea: window is still None.

2007-04-09 Thread Shandy Brown
make sure you don't accidentally select "key_press" when you intend "button_press". -sjbrown On Fri, 2007-04-06 at 15:00 -0700, Shandy Brown wrote: > Hmm.. That sounds like the kind of thing Glade should do for me, no? > > On Fri, 2007-04-06 at 11:53 +0200, Gian Mario

Re: [pygtk] DrawingArea: window is still None.

2007-04-06 Thread Shandy Brown
Hmm.. That sounds like the kind of thing Glade should do for me, no? On Fri, 2007-04-06 at 11:53 +0200, Gian Mario Tagliaretti wrote: > 2007/4/6, Shandy Brown <[EMAIL PROTECTED]>: > > > I have also tried realize() in place of show() with the same result. > > Any h

[pygtk] DrawingArea: window is still None.

2007-04-05 Thread Shandy Brown
I'm getting None returned as my drawingArea.window attribute. here's a snippet: (NOTE: I'm using Glade) self.tzdraw = xml.get_widget("TimezoneDrawingArea") self.tzdraw.show() assert self.tzdraw assert self.tzdraw.window #This fails I have also tried realize()

Re: [pygtk] pygtk API

2002-10-16 Thread Shandy Brown
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq01.007.htp On Wed, 2002-10-16 at 11:39, LDC - Pablo Endres Lozada wrote: > > Where can I find a pygtk API? > -- +-----+ |

Re: [pygtk] Dynamic menus

2002-09-23 Thread Shandy Brown
Well, if you're looking at an XML schema for GTK menus, I'd recommend the Glade file format. It would be a lot less work for you than rolling your own. shandy On Wed, 2002-09-11 at 06:49, Arjan Molenaar wrote: > Hi, > > What's the best way to create dynamic menus (the user can change the >

Re: [pygtk] FAQ links

2002-07-13 Thread Shandy Brown
yeah, that makes sense in the context. plus it gives users a little more information. On Sat, 2002-07-13 at 13:34, Christian Reis wrote: > On Sat, Jul 13, 2002 at 01:26:41PM -0400, Shandy Brown wrote: > > I know it's kind of AOLish, but I think "click here" would fit

Re: [pygtk] FAQ links

2002-07-13 Thread Shandy Brown
I know it's kind of AOLish, but I think "click here" would fit more naturally into some of the contexts than "link". Shandy On Sat, 2002-07-13 at 11:21, Christian Reis wrote: > > I've been messing with faqwiz the past days to make it nicer. I've made > the following changes: > > a) Starting a

[pygtk] PyGTK with threading and network example

2002-07-08 Thread Shandy Brown
Hi. This discussion has inspired me to create a PyGTK Threading/Networking example. Basically it's a chat application. It's comprised of two windows, the first lets you choose two ports, the one you'll be listening on, and the one you'll be sending on. The next window is a label, a text ent

Re: [pygtk] beginner threads question

2002-07-06 Thread Shandy Brown
Was there ever an answer to this? I'd be very curious to find out, too, as I've been putting off the networking/threading part of my application. Are there any toy examples out there where a pygtk app listens to the network and allows user input at the same time? Maybe the simplest thing would

Re: [pygtk] Scrollbar events and GtkText

2002-06-10 Thread Shandy Brown
On Mon, 2002-06-10 at 11:13, Andrew Reid wrote: > I am working on a "console" window for my application, trying to provide > a place where users can have arbitrary Python commands interpreted in the > application's namespace. This is a "shell-like" interface, as opposed > to an editor-like inte

Re: [pygtk] Notebook tab functions

2002-05-26 Thread Shandy Brown
That, or something like it, should work. Have you tried it? On Sun, 2002-05-26 at 10:50, Collins wrote: > Is there a way to code a python function that receives an object that > can be invoked in that function, i.e. the equivalent of passing in a > pointer to funtion in C code and invoking that

Re: [pygtk] small patch for libglade.py

2002-05-20 Thread Shandy Brown
This issue was already covered on the list. Apparently it comes from LibXML or something, not from pygtk / LibGlade. On Thu, 2002-05-16 at 17:42, Charles Waldman wrote: > > If you try to do GladeXML("somefile.glade") where "somefile.glade" > does not exist or is not readable, you get a "WARNING

Re: [pygtk] Typo in FAQ

2002-05-14 Thread Shandy Brown
> """ > 1.7. Where are the reference manuals? > However, the Python mapping is quite straightforward *wrt* the C API, so it is quite >useful in general > """ WRT stands for With Respect To. Maybe this should be capitalized in the FAQ. > """ In other words, you can attach any number of referenc

Re: [pygtk] The right widget (for arranging graphics)

2002-02-26 Thread Shandy Brown
I found this tutorial helpful when learning about the GnomeCanvas: http://linuxfocus.org/English/July2000/article160.shtml (there are a bunch more tutorials in the PyGTK FAQ) HTH, sjbrown On Tue, 2002-02-26 at 05:40, Graham Ashton wrote: > On Mon, Feb 25, 2002 at 10:59:14AM +0100, Johan Dahlin

Re: [pygtk] Speaking of libglade...

2002-02-07 Thread Shandy Brown
This happens to me occasionally too. JamesH, I know this is the wrong place, but... any chance we'll see libglade reporting two different errors: one for bad XML files and another for inability to find/read the file? sjbrown On Thu, 2002-02-07 at 12:13, Ralph Walden wrote: > Oops! Never mind.

Re: [pygtk] Tutorials

2002-02-04 Thread Shandy Brown
Here's another one http://www.icon.co.za/~zapr/Project1.html I'd be interested in getting a password to add stuff to the FAQ myself. sjbrown On Thu, 2002-01-31 at 16:31, Christian Robottom Reis wrote: > > I remember people posting tutorial URLs to this list, but I can't seem to > find them to

Re: [pygtk] FAQ work.

2002-02-02 Thread Shandy Brown
faqwiz didn't come with my 2.2 distribution (odd...), but I found it on the information superhighway ;) try this... in faqconf.py, change this: PROLOGUE = ''' %(title)s http://www.python.org/pics/RedShort.gif"; BGCOLOR="#FF" TEXT="#00" LINK="#AA" VLINK="#9

Re: [pygtk] FAQ work.

2002-02-02 Thread Shandy Brown
What software do you use to create the FAQ? I'd be interested in adding a stylesheet -- mainly because i find that the red blocks in the background are a little too close to the text. shandy On Thu, 2002-01-31 at 18:43, Christian Robottom Reis wrote: > > http://www.async.com.br/faq/pygtk/index

Re: [pygtk] Tutorials

2002-01-31 Thread Shandy Brown
Here's another one http://www.icon.co.za/~zapr/Project1.html I'd be interested in getting a password to add stuff to the FAQ myself. sjbrown On Thu, 2002-01-31 at 16:31, Christian Robottom Reis wrote: > > I remember people posting tutorial URLs to this list, but I can't seem to > find them to

Re: [pygtk] Tutorials

2002-01-31 Thread Shandy Brown
i've got three listed at the bottom of this (unfinished) page: http://sjbrown.geeky.net/metagame-sector/tutorial.html sjbrown On Thu, 2002-01-31 at 16:31, Christian Robottom Reis wrote: > > I remember people posting tutorial URLs to this list, but I can't seem to > find them to add them to the

[pygtk] threading issue...

2002-01-31 Thread Shandy Brown
Short Question: is there any way for the current thread to know that it doesn't have to call gtk.threads_enter() Long Question: I've got a function that can be called either by the thread responsible for gtk.mainloop() (call it the 'original' thread) or an 'outsider' thread that was spun off. Th

Re: [pygtk] PyGimp

2002-01-08 Thread Shandy Brown
I've come across this problem in the past. Here's an article that i found to be an interesting read -- it shows a way to run the gimp as a 'server' in a sense, perhaps in the way that you'd like. I'm hoping to use the concepts in it for one of my projects. http://www.ukuug.org/events/linux2001/

[pygtk] New PyGTK/PyGNOME/LibGlade tutorial

2001-12-19 Thread Shandy Brown
just a heads up to everyone on the list, I've started a Tutorial on my website. I hope to cover PyGTK, PyGNOME, and LibGlade. http://sjbrown.geeky.net/metagame-sector/tutorial.html Let me know what you think, sjbrown ___ pygtk mailing list [EMAI