[pygtk] About libglade, glade and mask entry

2004-10-28 Thread Douglas Soares de Andrade
Hi !

Is there a way to do a mask entry like __:__ in glade ?

Im doing a program to calculate time and i need this mask.

Thanks for any help.

-- 
Douglas Soares de Andrade
dsa em unilestemg.br

___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] diacanvas

2004-10-28 Thread Arjan Molenaar
What kind of documentation are you looking for.
There is Gaphor of course (http://gaphor.sf.net). Written in Python, but 
it's quite complicated for an example.

Please be more specific.
Regards,
Arjan
agb wrote:
Hi,
does anyone have any pointers to using diacanvas gtk module?  The
documentation is extremely basic, so if anyone has examples I could look
at, I'd be grateful!
Thanks...
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Browser Bookmarks Menu (Gnome Applet) 0.1

2004-10-28 Thread Johan Dahlin
> You can change it using something like this:
> 
> style "menubar-style" { 
> GtkMenuBar::shadow_type = etched-in 
> }
>  
> class "GtkMenuBar" style "menubar-style"
> 
> Pass it on to gtk.rc_parse_string().

Added as FAQ 4.18:
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq04.018.htp

-- 
Johan Dahlin <[EMAIL PROTECTED]>



___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Browser Bookmarks Menu (Gnome Applet) 0.1

2004-10-28 Thread Johan Dahlin
tor 2004-10-28 klockan 22:46 +1000 skrev Nigel Tao:
> >>How do I get rid of the border?
[..]
> tried a different method with "style_" in it:
> print menubar.style_get_property("shadow-type")
> and now got:
> 
> 
> 
> but there is no corresponding style_set_property method.

style properties are read only.

You can change it using something like this:

style "menubar-style" { 
GtkMenuBar::shadow_type = etched-in 
}
 
class "GtkMenuBar" style "menubar-style"

Pass it on to gtk.rc_parse_string().

-- 
Johan Dahlin <[EMAIL PROTECTED]>

___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Browser Bookmarks Menu (Gnome Applet) 0.1

2004-10-28 Thread Gustavo J. A. M. Carneiro
Qui, 2004-10-28 às 22:46 +1000, Nigel Tao escreveu:
> >>How do I get rid of the border?
> >
> >menubar.set_property("shadow-type", gtk.SHADOW_NONE)
> 
> I tried this, and got:
> 
> Traceback (most recent call last):
>   File "./browser-bookmarks-menu.py", line 212, in ?
> applet_factory(applet, None)
>   File "./browser-bookmarks-menu.py", line 94, in applet_factory
> menubar.set_property("shadow-type", gtk.SHADOW_NONE)
> TypeError: the object does not support the given parameter
> 
> 
> I poked around for a bit, and tried:
> print menubar.get_property("shadow-type")
> and again got an error:
> TypeError: the object does not support the given parameter
> 
> 
> tried a different method with "style_" in it:
> print menubar.style_get_property("shadow-type")
> and now got:
> 
> 
> 
> but there is no corresponding style_set_property method.
> 
> 
> Any ideas?  I have gnome-python 2.6.0.

  I'm sorry.  I hadn't noticed it is a style property.  I don't know if
there's any better way, but at least you can use gtk.rc_add_default_file
("/foo/bar/gtkrc.myapplication"), and put the style properties there.
You have to read about rc file syntax in gtk+ documentation.

> 
> tia,
> Nigel.
> 
> ___
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-- 
Gustavo J. A. M. Carneiro
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
The universe is always one step beyond logic.


smime.p7s
Description: S/MIME cryptographic signature
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] diacanvas

2004-10-28 Thread agb
Hi,
does anyone have any pointers to using diacanvas gtk module?  The
documentation is extremely basic, so if anyone has examples I could look
at, I'd be grateful!

Thanks...
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Browser Bookmarks Menu (Gnome Applet) 0.1

2004-10-28 Thread Nigel Tao
>>How do I get rid of the border?
>
>menubar.set_property("shadow-type", gtk.SHADOW_NONE)

I tried this, and got:

Traceback (most recent call last):
  File "./browser-bookmarks-menu.py", line 212, in ?
applet_factory(applet, None)
  File "./browser-bookmarks-menu.py", line 94, in applet_factory
menubar.set_property("shadow-type", gtk.SHADOW_NONE)
TypeError: the object does not support the given parameter


I poked around for a bit, and tried:
print menubar.get_property("shadow-type")
and again got an error:
TypeError: the object does not support the given parameter


tried a different method with "style_" in it:
print menubar.style_get_property("shadow-type")
and now got:



but there is no corresponding style_set_property method.


Any ideas?  I have gnome-python 2.6.0.

tia,
Nigel.

___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/