[pygtk] problem in xfce4

2004-04-03 Thread Daniel Kirkegaard Mouritsen
Hi everybody,

I tried installing xfce4 recently, and kinda liked it. But i've been
having some problems with gtk.toolbar when running under it.

i've put this little page up showing screenshots of the problem:
http://www.geocities.com/dmouritsendk/index.htm

So im back in gnome now, but I would like to hear if anybody else have
had similar experinces with xfce and 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] Storing a TreeView

2004-04-03 Thread David M. Cook
On Sat, Apr 03, 2004 at 02:12:28PM +0200, Nemesis wrote:

> Hmm, I think that the n.1 is the most simple, but however you have to
> cicle the list and rebuild the tree, as far I can see.
> I'm not sure I understood n.2, 

The idea is to subclass TreeStore and override TreeStore.set/set_value (and
also TreeStore.remove if you are deleting nodes) so that you save data every
time set_value is called. 

But why persist the store, why not just keep it in memory and use
TreeView.set_model to change stores?  Do you really need to save the headers
in between sessions?

Dave Cook


___
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] ANNOUNCE: Gnome-Python 2.0.2

2004-04-03 Thread Johan Dahlin
Gnome-Python 2.0.2 is now available at:
http://ftp.gnome.org/pub/GNOME/sources/gnome-python/2.0/

Gnome-Python provides bindings for the Gnome 2.x development platform 
libraries.  It builds on top of PyGTK, and includes bindings for the 
following GNOME libraries:

* the GConf configuration database
* the Bonobo component system
* the Gnome-VFS file access library
* support for writing panel applets and Nautilus views
* the GtkHTML2 widget.
* the Gnome-Print print libraries.

Gnome-Python requires PyGTK, PyORBit, Python >= 2.2 and the Gnome 2.x 
development platform to build.

PyGtk, Python and Gnome is usually included in your distribution, if not:
PyGTK can be found on http://www.pygtk.org/
Python can be found on http://www.python.org
Gnome libraries can be found on http://www.gnome.org

Changes since 2.0.1:

  The only change since 2.0.1 is a small build fix that makes it possible
  to build the vfs bindings again. (bug 138556)

Questions about Gnome-Python can be directed to the PyGTK list:
http://www.daa.com.au/mailman/listinfo/pygtk
Bug reports should be filed at the Gnome bug tracker:
http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-python
-- 
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/


[pygtk] Minimum button size

2004-04-03 Thread Pierre N
Hi,

I'm working on a project deployed on iPaq running Familiar. Everything
is great, it's just that I'm using my own digits keyboard on screen, and
my buttons are too big for this tiny screen. Is there some way to make
buttons small when they have only a "one char" label?
I can send some screen shots if needed

--
Pierre



signature.asc
Description: This is a digitally signed message part
___
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] gtkDrawingArea

2004-04-03 Thread Pizzol Martino
Hi all,
 I'm writing a program for an Ipaq with pyGtk. I draw a pixmap created 
by a png image (644x492 8-bit) on a Drawing area. Is it normal the 
program use 10Mb of ram when it draw the pixmap?is there a lighter 
method to drawing an image in a Drawing Area?
Thanks!

PS: Forgive me for my English... It's not my primary language

Martino "Firewolf" Pizzol
   .~.
   /V\
  //  \\
 /()\
 ^^-^^
Linux Registered User #300375
[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] dnd drag_source_set_icon for treeview fails

2004-04-03 Thread Danny Milosavljevic
Hi George,

You did call drag_source_set_icon_pixbuf from a drag-begin handler
though ?

btw if you want to set the drag icon yourself, you cannot use
enable_model_drag_*, i.e. you have to do everything d&d yourself (else
it will just override the icon with its own again).

Hope that helps..

cheers,
   Danny

-- 
www.keyserver.net Key ID A334AEA6


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
___
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] Storing a TreeView

2004-04-03 Thread Nemesis
On Sat, 3 Apr 2004 03:13:05 -0800
"David M. Cook" <[EMAIL PROTECTED]> wrote:

[pickling a tree]
> Options I can think of:
> 
> 1. Traverse the tree (TreeModel.foreach and TreeModel.get_value) 
>and save each node.  You can use the path as a key, and it's then
>easy to rebuild the TreeModel.
>
> 2. Save nodes in the tree as they are added.  It may help to subclass
>TreeStore.
>
> 3. Write you own TreeModel that can be persisted at once.
> 
> Dave Cook

Hmm, I think that the n.1 is the most simple, but however you have to
cicle the list and rebuild the tree, as far I can see.
I'm not sure I understood n.2, and n.3 is far from my knowledge at the
time :-D
Thank you.

-- 

 |\ |   |HomePage   : http://nem01.altervista.org
 | \|emesis |XPN (my nr): http://xpn.altervista.org
___
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] Storing a TreeView

2004-04-03 Thread David M. Cook
On Sat, Apr 03, 2004 at 11:00:40AM +0200, Nemesis wrote:

> Hi all,
>I'm writing a newsreader with python+pygtk. I'm using a TreeView
> in order to show the articles (in a threaded fashion). I'd like to
> store the model so I don't have to rebuild the threads every time I
> select the group.
> I've tried pickling the TreeModel, but it isn't picklable. How can
> I store this information?

Options I can think of:

1. Traverse the tree (TreeModel.foreach and TreeModel.get_value) 
   and save each node.  You can use the path as a key, and it's then
   easy to rebuild the TreeModel.
   
2. Save nodes in the tree as they are added.  It may help to subclass
   TreeStore.
   
3. Write you own TreeModel that can be persisted at once.

Dave Cook
___
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] Storing a TreeView

2004-04-03 Thread Nemesis
Hi all,
   I'm writing a newsreader with python+pygtk. I'm using a TreeView
in order to show the articles (in a threaded fashion). I'd like to
store the model so I don't have to rebuild the threads every time I
select the group.
I've tried pickling the TreeModel, but it isn't picklable. How can
I store this information?

-- 

 |\ |   |HomePage   : http://nem01.altervista.org
 | \|emesis |XPN (my nr): http://xpn.altervista.org
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/