Re: [pygtk] PyGTK .app bundle for MacOS X?

2006-10-20 Thread Tony Nelson
At 6:04 PM +0200 10/20/06, _v_tiziano wrote:

>2006/10/20, _v_tiziano <[EMAIL PROTECTED]>:
>> Today I have build a installer for OSX that contain GTK 2.10.0 and
>> pyGTK 2.10.3 for python2.4
>>
>> Two problems only:
>>
>> 1. all the binaries are installed in /opt, and then linked (symbolic)
>> to the python osx framework (any ideas?)
>>
>> 2. the package is realy big (52MB)
>>
>> If I find a clear osx install, I will try to make a better work.

>update: the very minimal package -> 12MB

I found that a lot of a py2exe installer was language stuff for
translations I did not have.  I wrote a script to purge them.  (It probably
wouldn't work with py2app.)
-- 

TonyN.:'The Great Writ 
  '  is no more. 
___
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] PyGTK .app bundle for MacOS X?

2006-10-20 Thread _v_tiziano

update: the very minimal package -> 12MB

2006/10/20, _v_tiziano <[EMAIL PROTECTED]>:

Today I have build a installer for OSX that contain GTK 2.10.0 and
pyGTK 2.10.3 for python2.4

Two problems only:

1. all the binaries are installed in /opt, and then linked (symbolic)
to the python osx framework (any ideas?)

2. the package is realy big (52MB)

If I find a clear osx install, I will try to make a better work.

bye
tiziano


___
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] PyGTK .app bundle for MacOS X?

2006-10-20 Thread _v_tiziano

Today I have build a installer for OSX that contain GTK 2.10.0 and
pyGTK 2.10.3 for python2.4

Two problems only:

1. all the binaries are installed in /opt, and then linked (symbolic)
to the python osx framework (any ideas?)

2. the package is realy big (52MB)

If I find a clear osx install, I will try to make a better work.

bye
tiziano
___
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] easy question :)

2006-10-20 Thread Magnus Therning
On Thu, Oct 19, 2006 at 12:23:23 -0700, enache alex wrote:
>The OS I want to write the program for is Linux(Fedora). Thanks.

I don't think there's any "Python way" of doing this.  Instead you'll
have to use Python to modify network settings in /etc and running
command lind tools.  AFAIK this is bound to make your tool very tightly
bound to a specific distribution unless you do some clever abstraction.

On top of this you might also have to deal with desktop settings (GNOME
or KDE), especially regarding proxy settings.

/M

>Magnus Therning <[EMAIL PROTECTED]> wrote: On Wed, Oct 18, 2006 at 22:31:23 
>-0700, enache alex wrote:
>>Hello there. I want to know how can I set the internet settings(IP,net
>>mask, proxy, etc) from within python(I'll have a window created with
>>pygtk in which I will fill some textboxes, and when I press OK the
>>modifications will be made to the IP,..etc). Thanks
>
>I think you need to use different methods on different systems.  So,
>what OS is this for?
>
>/M
>
>-- 
>Magnus Therning (OpenPGP: 0xAB4DFBA4)
>[EMAIL PROTECTED] Jabber: [EMAIL PROTECTED]
>http://therning.org/magnus
>
>Software is not manufactured, it is something you write and publish.
>Keep Europe free from  software patents, we do not want censorship
>by patent law on written works.
>
>The definition of insanity is doing the same thing over and over again
>and expecting different results.
> -- Albert Einstein
>___
>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/
>
>  
>
>-
>Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small 
>Business. ___
>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/
>
>
>   
>-
>Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small 
>Business.
>   
>-
>Get your email and more, right on the  new Yahoo.com 

Content-Description: pat244779576
>___
>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 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/


-- 
Magnus Therning (OpenPGP: 0xAB4DFBA4)
[EMAIL PROTECTED] Jabber: [EMAIL PROTECTED]
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Some operating systems are called 'user friendly', Linux however is
'expert friendly'.


pgpM6r7bfIWhe.pgp
Description: PGP signature
___
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] adding a close button to a notebook

2006-10-20 Thread Tony Nelson
At 8:36 AM +0200 10/20/06, N. Volbers wrote:
>Hello everyone,
>
>I am using a notebook for a sort of tabbed interface a la Firefox. 
>Currently, there is a close button for each tab, positioned in the tab 
>widget. However, I would like to have just a single close button at the 
>very right of the notebook (again, just like Firefox does). Is there a 
>way to add a widget inside the notebook tab box?

I use something like this:

class NotebookTabLabel(gtk.HBox):
'''Notebook tab label with close button.
'''
def __init__(self, on_close, owner_):
gtk.HBox.__init__(self, False, 0)

label = self.label = gtk.Label()
label.set_alignment(0.0, 0.5)
self.pack_start(label)
label.show()

close_image = gtk.image_new_from_stock(gtk.STOCK_CLOSE, 
gtk.ICON_SIZE_MENU)
image_w, image_h = gtk.icon_size_lookup(gtk.ICON_SIZE_MENU)

close_btn = gtk.Button()
close_btn.set_relief(gtk.RELIEF_NONE)
close_btn.connect('clicked', on_close, owner_)
close_btn.set_size_request(image_w+2, image_h+2)
close_btn.add(close_image)
self.pack_start(close_btn, False, False)
close_btn.show_all()

self.show()

tl = NotebookTabLabel(
lambda *args: self.owner.on_tab_close_doc(*args),
self )

I hacked this down from something fancier, but I think it's still all there.
-- 

TonyN.:'The Great Writ 
  '  is no more. 
___
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] adding a close button to a notebook

2006-10-20 Thread N. Volbers

Hello everyone,

I am using a notebook for a sort of tabbed interface a la Firefox. 
Currently, there is a close button for each tab, positioned in the tab 
widget. However, I would like to have just a single close button at the 
very right of the notebook (again, just like Firefox does). Is there a 
way to add a widget inside the notebook tab box?


Best regards,

Niklas.

___
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/