Re: [pygtk] Getting tooltips color

2005-11-11 Thread Steve McClure
On Thu, 2005-11-10 at 23:54 -0500, Andrew Conkling wrote: I was wondering if it were possible to get the GTK+ theme's color for tooltips. gtk.Tooltips() does not have a .get_style() since it's not a subclass of gtk.Widget(), so it seems some voodoo magic would be necessary to get the color.

Re: [pygtk] Getting tooltips color

2005-11-11 Thread Andrew Conkling
On 11/11/05, Brian [EMAIL PROTECTED] wrote: On Thu, 2005-10-11 at 23:54 -0500, Andrew Conkling wrote: I was wondering if it were possible to get the GTK+ theme's color for tooltips. gtk.Tooltips() does not have a .get_style() since it's not a subclass of gtk.Widget(), so it seems some

Re: [pygtk] Getting tooltips color

2005-11-11 Thread Nikos Kouremenos
win = gtk.Window() win.set_name('gtk-tooltips') # this draws it as tooltip then you get the style and whatever color u like On 11/11/05, Andrew Conkling [EMAIL PROTECTED] wrote: On 11/11/05, Brian [EMAIL PROTECTED] wrote: On Thu, 2005-10-11 at 23:54 -0500, Andrew Conkling wrote: I was

Re: [pygtk] Wrong start of week in gtk.Calendar

2005-11-11 Thread Gary Jaffe
Johan Dahlin wrote: Gary Jaffe wrote: I would like a calendar with the weeks starting with Sunday. I made the following calendar, but the weeks start on Monday. self.clndr = gtk.Calendar() self.clndr.set_display_options( gtk.CALENDAR_SHOW_HEADING | gtk.CALENDAR_SHOW_DAY_NAMES |

Re: [pygtk] Wrong start of week in gtk.Calendar

2005-11-11 Thread Gary Jaffe
Johan Dahlin wrote: Gary Jaffe wrote: I would like a calendar with the weeks starting with Sunday. I made the following calendar, but the weeks start on Monday. self.clndr = gtk.Calendar() self.clndr.set_display_options( gtk.CALENDAR_SHOW_HEADING | gtk.CALENDAR_SHOW_DAY_NAMES |

[pygtk] Best way to check program idle time??

2005-11-11 Thread Chris Irish
If I have a pygtk app and I want it to do something if its been sitting idle for a few minutes. What is the best way to go about this? It seems to me that I would need a timer that would be reset everytime a signal was emitted or something? Any ideas. or has anyone done this. Would I

Re: [pygtk] Best way to check program idle time??

2005-11-11 Thread Steve McClure
On Fri, 2005-11-11 at 09:36 -0700, Chris Irish wrote: If I have a pygtk app and I want it to do something if its been sitting idle for a few minutes. What is the best way to go about this? It seems to me that I would need a timer that would be reset everytime a signal was emitted or

Re: [pygtk] Best way to check program idle time??

2005-11-11 Thread Chris Irish
Steve McClure wrote: On Fri, 2005-11-11 at 09:36 -0700, Chris Irish wrote: If I have a pygtk app and I want it to do something if its been sitting idle for a few minutes. What is the best way to go about this? It seems to me that I would need a timer that would be reset

Re: [pygtk] Best way to check program idle time??

2005-11-11 Thread Steve McClure
On Fri, 2005-11-11 at 10:26 -0700, Chris Irish wrote: Steve McClure wrote: On Fri, 2005-11-11 at 09:36 -0700, Chris Irish wrote: If I have a pygtk app and I want it to do something if its been sitting idle for a few minutes. What is the best way to go about this? It seems to

Re: [pygtk] Best way to check program idle time??

2005-11-11 Thread Chris Irish
Steve McClure wrote: On Fri, 2005-11-11 at 10:26 -0700, Chris Irish wrote: Steve McClure wrote: On Fri, 2005-11-11 at 09:36 -0700, Chris Irish wrote: If I have a pygtk app and I want it to do something if its been sitting idle for a few

Re: [pygtk] Best way to check program idle time??

2005-11-11 Thread Steve McClure
On Fri, 2005-11-11 at 10:55 -0700, Chris Irish wrote: Steve McClure wrote: On Fri, 2005-11-11 at 10:26 -0700, Chris Irish wrote: Steve McClure wrote: On Fri, 2005-11-11 at 09:36 -0700, Chris Irish wrote: If I have a pygtk app and I want it to do

[pygtk] gtk.Entry width on editing_done

2005-11-11 Thread Mike Bernson
I am looking for a way to to known when editing in Entry widget is done. I started by catching focus_out_event this was a good start but I soon found that I need to catch the activate signal to catch the user hitting the return key. This look like work but then I found that if I used alt key