Re: [pygtk] Colors in calendar

2008-06-25 Thread Paul Malherbe
Hi You could play around with these widget methods e.g. font = pango.FontDescription("Sans 12") calendar.modify_font(font) base = gtk.gdk.color_parse("red") calendar.modify_base(gtk.STATE_NORMAL, base) Regards Paul Malherbe  +27 (0) 21 6711866 +27 (0) 82 9005260 Kosa wrote:

Re: [pygtk] Colors in calendar

2008-06-25 Thread Kosa
nobody? Please help. Kosa - Un mundo mejor es posible - Kosa escribió: I forgot to mention I found the set_marked_date_color method but "'gtk.Calendar' object has no attribute 'set_marked_date_color'" Cheers Kosa - Un mundo mejor es posible -

Re: [pygtk] Activate invisible-char

2008-06-25 Thread Frédéric
On mercredi 25 juin 2008, Festila Catalin wrote: > I want to activate *invisible*-*char *from a GtkEntry. entry.set_visibility(False) entry.set_invisible_char('*') # Default Is it what you need? -- Frédéric http://www.gbiloba.org ___ pygtk m

[pygtk] ANNOUNCE: Spiff GtkWidgets (goocalendar, AnnotatedTextView, color tools)

2008-06-25 Thread Samuel Abels
Hi, I am happy to announce Spiff GtkWidgets, a collection of Gtk widgets written in Python. SpiffGtkWidgets.Calendar - About a year ago I dropped a calendar widget similar to Google Calendar on this list (goocalendar). I wasn't planning to maintain it back then, but now I

[pygtk] Activate invisible-char

2008-06-25 Thread Festila Catalin
I want to activate *invisible*-*char *from a GtkEntry. Thank you ! ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Problem with PyGtk (Builder)

2008-06-25 Thread Nathan Samson
Hi, I don't know if this is normal behaviour or a bug in (Py)Gtk, so I post it first here. This is a simple test app #Start of application import gtk class class1(): def __init__(self): print "INIT" builder = gtk.Builder() builder.add_from_file("gtk-builder-test.

Re: Fwd: [pygtk] Disable/enable window close button

2008-06-25 Thread Ronaldo Nascimento
Thats it, it worked! On Wed, Jun 25, 2008 at 11:53 AM, Frédéric <[EMAIL PROTECTED]> wrote: > On mercredi 25 juin 2008, Packo wrote: > > > Ok, I know the behaviour of Windows with delete-event, I use it to > > manage the closing of windows, but my question, not the question of > > Frederic, is: ca

Re: Fwd: [pygtk] Disable/enable window close button

2008-06-25 Thread Frédéric
On mercredi 25 juin 2008, Gian Mario Tagliaretti wrote: > It does work. > > Returning True from "delete-event" stops the signal emission and the > windows stays open, you probably want to give the user another meaning > to close the window, like popping up a message dialog asking if they > really

Re: Fwd: [pygtk] Disable/enable window close button

2008-06-25 Thread Frédéric
On mercredi 25 juin 2008, Packo wrote: > Ok, I know the behaviour of Windows with delete-event, I use it to > manage the closing of windows, but my question, not the question of > Frederic, is: can you hide the cross button in the window-manager with > GTK when you want? http://pygtk.org/docs/py

Re: Fwd: [pygtk] Disable/enable window close button

2008-06-25 Thread Frédéric
On mercredi 25 juin 2008, Packo wrote: > Ok, I know the behaviour of Windows with delete-event, I use it to > manage the closing of windows, but my question, not the question of > Frederic, is: can you hide the cross button in the window-manager with > GTK when you want? http://pygtk.org/docs/py

Re: Fwd: [pygtk] Disable/enable window close button

2008-06-25 Thread Packo
Ok, I know the behaviour of Windows with delete-event, I use it to manage the closing of windows, but my question, not the question of Frederic, is: can you hide the cross button in the window-manager with GTK when you want? regards.. Gian Mario Tagliaretti escribió: oops... wrong button, re

Re: [pygtk] Error message

2008-06-25 Thread Packo
Try to rename the Combo with "x:y" values to "x y" values, I think is a parse error in libglade. PD: this is the second email I send, the first is lost, I think Frédéric escribió: Le 25/6/2008, "BJörn Lindqvist" <[EMAIL PROTECTED]> a écrit: Here is the minimal glade file that reproduces y

Fwd: [pygtk] Disable/enable window close button

2008-06-25 Thread Gian Mario Tagliaretti
oops... wrong button, reply-all is better :) On Wed, Jun 25, 2008 at 4:20 PM, Frédéric <[EMAIL PROTECTED]> wrote: > It does not work... It does work. Returning True from "delete-event" stops the signal emission and the windows stays open, you probably want to give the user another meaning to cl

Re: [pygtk] Disable/enable window close button

2008-06-25 Thread John Ehresman
Frédéric wrote: Le 25/6/2008, "Adiv" <[EMAIL PROTECTED]> a écrit: Hmm. I know that two signals are emitted when the exit button is pressed, "delete_event" and "destroy". You could connect the window to both, defining the handlers as simply returning True. Theoretically (at least in my theory)

Re: [pygtk] Disable/enable window close button

2008-06-25 Thread Frédéric
Le 25/6/2008, "Adiv" <[EMAIL PROTECTED]> a écrit: >Hmm. I know that two signals are emitted when the exit button is pressed, >"delete_event" and "destroy". You could connect the window to both, defining >the handlers as simply returning True. Theoretically (at least in my theory) >that should

Re: [pygtk] Disable/enable window close button

2008-06-25 Thread Adiv
Hmm. I know that two signals are emitted when the exit button is pressed, "delete_event" and "destroy". You could connect the window to both, defining the handlers as simply returning True. Theoretically (at least in my theory) that should just stop the signal there and stop the exit process.

Re: [pygtk] Error message

2008-06-25 Thread Frédéric
Le 25/6/2008, "BJörn Lindqvist" <[EMAIL PROTECTED]> a écrit: >Here is the minimal glade file that reproduces your problem: > > > > > > > >context="yes">portrait >0 > > > >It seems like this problem is very widespread, see: > >http://lists.ximian.com/pipermail/glade

Re: [pygtk] Error message

2008-06-25 Thread BJörn Lindqvist
Here is the minimal glade file that reproduces your problem: portrait 0 It seems like this problem is very widespread, see: http://lists.ximian.com/pipermail/glade-users/2005-March/002467.html http://lists.ximian.com/pipermail/glade-users/2007-May/003485.h

Re: [pygtk] Disable/enable window close button

2008-06-25 Thread Paco Moreno
good question. Anybody knows? 2008/6/25 Frédéric <[EMAIL PROTECTED]>: > > Hello, > > How do I manually disable/enable the window close button (the little > cross)? > > Thanks, > ___ > pygtk mailing list pygtk@daa.com.au > http://www.daa.com.au/mailman

Re: [pygtk] General PyGtk design question

2008-06-25 Thread Paco Moreno
Python is an Object Oriented Language, the correct access to a class attribute is with class methods. Is a good practice. The method "set_text" change the label attribute and do other tasks like redraw the widget. That's the target of object orientation, you don't have to know how to do the label

[pygtk] Disable/enable window close button

2008-06-25 Thread Frédéric
Hello, How do I manually disable/enable the window close button (the little cross)? Thanks, ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] General PyGtk design question

2008-06-25 Thread Rafael Villar Burke
Walter Leibbrandt wrote: > Good day, > > I would just like to ask a question about the design of PyGtk: What > were the reasons for the C-like deisgn of PyGtk? For example having to > use "label.set_text('bleh')" in stead of "label.text = 'bleh'" and > "txt = label.get_text()" in stead of "txt = la

[pygtk] trouble to resize a HPaned() widget

2008-06-25 Thread awalter1
Hi, I'm trying to summarize how my trouble appears. I've defined the following widgets : self.frame = gtk.Frame() self.VPaned = gtk.VPaned() self.HPaned = gtk.HPaned() ... self.frame.add(self.VPaned) VPaned.add1(self.HPaned) self.VPaned.set_position(472) ...

[pygtk] General PyGtk design question

2008-06-25 Thread Walter Leibbrandt
Good day, I would just like to ask a question about the design of PyGtk: What were the reasons for the C-like deisgn of PyGtk? For example having to use "label.set_text('bleh')" in stead of "label.text = 'bleh'" and "txt = label.get_text()" in stead of "txt = label.text". Not that I'm critic

Re: [pygtk] Close button on gtk.AboutDialog

2008-06-25 Thread Markus W. Barth
On Tuesday 24 June 2008 16:07:18 Ronaldo Nascimento wrote: > Code > > > self.aboutdialog = gtk.AboutDialog() > > self.aboutdialog.set_version('0.0.1') > > self.aboutdialog.show() > > How do i get the "close" button to hide the dialog? > thanks use self.aboutdialog.run() ins