Re: [pygtk] About Fullscreen libglade windows

2004-09-01 Thread Douglas Soares de Andrade
Thanks !

Already solved :)

See ya !

Em Qua 01 Set 2004 21:15, Graham Ashton escreveu:
> On Fri, 2004-08-27 at 21:48, Douglas Soares de Andrade wrote:
> > How to make a form init the execution maximized using libglade. I already
> > did the window and it is work perfectly.
> >
> > The only thing left to do is make it start maximized.
>
> Just call maximize() on the window before you enter the main loop.
>
> I've no idea how you're getting hold of the window object from glade,
> but the pure gtk code would look something like this:
>
> win = gtk.Window()
> win.maximize()
> win.show()
> gtk.main()
>
> You may not need the show() as glade shows things by default.
>
> --
> Graham
>
> ___
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

-- 
[]'s Tenshin

___
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] About Fullscreen libglade windows

2004-09-01 Thread Graham Ashton
On Fri, 2004-08-27 at 21:48, Douglas Soares de Andrade wrote:
>
> How to make a form init the execution maximized using libglade. I already did 
> the window and it is work perfectly. 
> 
> The only thing left to do is make it start maximized.

Just call maximize() on the window before you enter the main loop.

I've no idea how you're getting hold of the window object from glade,
but the pure gtk code would look something like this:

win = gtk.Window()
win.maximize()
win.show()
gtk.main()

You may not need the show() as glade shows things by default.

--
Graham

___
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] install a gconf schemas with distutils

2004-09-01 Thread Graham Ashton
On Thu, 2004-08-26 at 15:30, Guillaume Desmottes wrote:
> Hi!
> 
> I would like to use distutils to install a gconf schemas.
> 
> The distutils doc is very poor and I don't understand how to make that.
> 
> The 'manual' command is: 
> GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2
> --makefile-install-rule my_file.schemas 

straw is packaged with distutils, and it does have gconf schemas.
They're currently commented out of setup.py so may not be working, but
it may be worth having a look at what they did there and trying to get
something similar to work.

http://cvs.gnome.org/viewcvs/straw/setup.py?rev=1.7&view=auto

I recently packaged a Python app with the autotools, which I chose over
distutils purely as a learning exercise. If you fancy giving autotools a
go you may find it to be a useful example:

http://cvs.sourceforge.net/viewcvs.py/bandsaw/bandsaw/

I found the Gnome Blog autotools stuff quite a handy reference too. I
did consider writing up how to go about it, as I spent quite a while
digging around the net and asking questions on the #gnome-hackers IRC
channel in order to get it all sorted. Are there many people out there
who'd like to package pygtk apps with the autotools but aren't sure
where to start?

Arturo's applets tutorial has a good intro to it in the last chapter,
but it is fairly brief:

http://pygtk.org/articles/applets_arturogf/x207.html

--
Graham

___
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] Problem incorporating Python-subclassed widget into Glade

2004-09-01 Thread Skip Montanaro

I subclassed gtk.Table, then started trying to integrate it with Glade-2.  I
realized I needed to set __gproperties__ to add a property to the class, so
I added that:

__gproperties__ = { 
'use_checkboxes' :
(gobject.TYPE_BOOLEAN,  # type
 'use checkboxes for Booleans', # nick name
 'use checkboxes for Booleans', # description
 True,  # default value
 gobject.PARAM_READWRITE|gobject.PARAM_CONSTRUCT # flags
 )   
}

I also changed my superclass init call from

gtk.GtkTable.__init__(self, rows, cols)

to

gobject.__gobject_init__()
self.set_property("n-rows", rows)
self.set_property("n-columns", cols)

I have other instance attributes as well:

self.widgets = {}
self.values = {}
self.formats = {}
self.default_format = "%s"

I will eventually change default_format to a property.

If I instantiate my Table widget from Python, it seems to work fine.  When
it's instantiated via Glade its __init__ method doesn't appear to be called
though.  A print statement placed in Table.__init__() is not executed, and
Python denies that my class has a widgets attribute.

I incorporated the class into Glade by adding a regular GtkTable where I
wanted my Table, then using the output of

print gobject.type_name(Table)

I substituted that for "GtkTable" in my Glade file:


  True
  1
  6
  False
  0
  0


I must be missing something, but I'm not sure what.  Any ideas?

Thx,

-- 
Skip Montanaro
Got spam? http://www.spambayes.org/
[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] GTK installer from gladewin32 and pygtk ...

2004-09-01 Thread Cedric Gustin
[EMAIL PROTECTED] wrote:
Hi all, I'm trying to get gladewin32 gtk installer and pygtk binary
distribution (from  http://www.pcpm.ucl.ac.be/~gustin/win32_ports/) working
together but I have some problems.
I downloaded the installers:
- pygtk-2.3.96.win32-py2.3.exe
- gtk-win32-2.4.9-rc1.exe
First I installed the gtk installer and added the c:\gtk\bin and c:\gtk\lib
dirs in the path, after that I installed pygtk.
You don't need to manually modify your path as the gtk-win32 installer 
changes it for you automatically. And adding c:\GTK\lib is also useless...

The apps shipped with gtk installer work correctly but I'm not able to
use gtk from python, I get this error:
Traceback (most recent call last):
  File "", line 1, in ?
  File "C:\Python23\Lib\site-packages\gtk-2.0\gtk\__init__.py", line 33, in
import gobject as _gobject
ImportError: DLL load failed: Impossibile trovare la procedura specificata.
You're sure you have no leftover DLLs from a previous installation (GTK+ 
2.2, from dropline, in the windows/system32 directory,...) ?

Cedric
___
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] GTK installer from gladewin32 and pygtk ...

2004-09-01 Thread nemesis2001
Hi all, I'm trying to get gladewin32 gtk installer and pygtk binary
distribution (from  http://www.pcpm.ucl.ac.be/~gustin/win32_ports/) working
together but I have some problems.

I downloaded the installers:

- pygtk-2.3.96.win32-py2.3.exe
- gtk-win32-2.4.9-rc1.exe

First I installed the gtk installer and added the c:\gtk\bin and c:\gtk\lib
dirs in the path, after that I installed pygtk.
The apps shipped with gtk installer work correctly but I'm not able to
use gtk from python, I get this error:

Traceback (most recent call last):
  File "", line 1, in ?
  File "C:\Python23\Lib\site-packages\gtk-2.0\gtk\__init__.py", line 33, in
import gobject as _gobject
ImportError: DLL load failed: Impossibile trovare la procedura specificata.


Any ideas? I'have never had problems with the dropline installer.

-- 
NEU: Bis zu 10 GB Speicher für e-mails & Dateien!
1 GB bereits bei GMX FreeMail http://www.gmx.net/de/go/mail

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