Re: [pygtk] TreeView backgound image

2004-12-19 Thread vector
ok im not sure what all those names mean. i havent played with it much
I have modified the tutorial to just white its just black text on white 
at the moment. im using the treview to position text nicely
i actually have
# set background color property
  self.cellpb.set_property('cell-background', 'yellow')
  self.cell.set_property('cell-background', 'cyan')
  self.cell1.set_property('cell-background', 'pink')
all set to "white".
i want the whole background to be an image, with the cell text sitting 
on top
2 Q
1) how do is say
   self.cell.set_property('cell-background', 'animage.png')
2) how do i have an image across the whole thing. ie no cell colours. i 
guess it would be like a background span cells with image

John Finlay wrote:
vector wrote:
I apologise if this has been mentioned b4.
IM playing with the pygtk treeview tutorial
http://www.moeraki.com/pygtktutorial/pygtk2tutorial/examples/treeviewcolumn.py 

Is there a way of setting the background to an image rather than a 
colour?

What background exactly do you want to set to an image? The whole 
treeview, a treeviewcolumn, or a cellrenderer?

John
___
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] FileChooserDialog an FontSelectionDialog

2004-12-19 Thread Maciej Katafiasz
Dnia 17-12-2004, pią o godzinie 20:01 +0100, Nemesis napisał:
> [Problems with FileChooserDialog]
> > Not really, it's more of lack of GNOME problem than Fluxbox problem
> > :). Basically, you need to be running gnome-settings-daemon to get
> > full-blown GNOME file-selector, otherwise you get more basic Unix
> > implementation, which, amongst others, doesn't have icons for volumes,
> > nor volumes themselves in the first place.
> 
> But I'm using GTK not GNOME. On Windows the Dialog is shown in the right
> way.

That's exactly what I said. If you use pure GTK+ implementation, it'll
have less functionality than GNOME's VFS-based one. On windows there's
no need for gnome-vfs, and instead there's win32-specific implementation
which is (I guess) functionally equivalent to gnome-vfs one, thus you
don't see the effect which occurs on Unix.

Cheers,
Maciej

-- 
"Tautologizm to coś tautologicznego"
   Maciej Katafiasz <[EMAIL PROTECTED]>
 http://mathrick.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/


[pygtk] ProgressBar

2004-12-19 Thread Paul Malherbe
Hi

I would appreciate some help on the following problem I am experiencing.

I am migrating a suite from Tkinter to PyGtk and cannot update a
Progressbar within a loop e.g.

import pygtk
pygtk.require('2.0')
import gtk

class ProgressBar:
def __init__(self, scrn, max):
align = gtk.Alignment(0.5, 0.5, 1, 0)
align.show()
scrn.add(align)
self.progBar = gtk.ProgressBar()
self.progBar.set_size_request(100, 20)
self.progBar.set_orientation(0)  # left to right
self.progBar.set_fraction(0)
self.progBar.show()
align.add(self.progBar)
self.max = max

def increment(self, done):
frac = float((done * 100.0) / self.max)
self.progBar.set_text("%s (%s%s)" % \
   ("Updating Files", str(frac), "%"))
self.progBar.set_fraction(frac/100.0)

if  __name__ == "__main__":
def start(wd):
pb = ProgressBar(box, 1000)
for x in range(1000):
ok = pb.increment(x)
win = gtk.Window()
win.show()
box = gtk.VBox(gtk.FALSE, 0)
box.show()
win.add(box)
but = gtk.Button("start")
but.connect("clicked", start)
box.add(but)
but.show()
gtk.main()

Any help would be appreciated.

Thanks

Paul



___
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] stock item

2004-12-19 Thread Marcus Habermehl
Am Samstag, den 18.12.2004, 12:49 + schrieb Gustavo J. A. M.
Carneiro:
> On Fri, 2004-12-17 at 13:09 +0100, Marcus Habermehl wrote:
> > Am Mittwoch, den 15.12.2004, 18:00 +0100 schrieb Murray Cumming:
> > > > As I want to create a stock item for the button Credits in a gnome about
> > > > window, I wounder why there is not stock item gtk-credits or gtk-about
> > > > or anything else.
> > > 
> > > There is one in GTK+ 2.5/2.6.
> > 
> > So I can't use them. I'm using GTK+ 2.4.
> > 
> > How is the stock id? In the pygtk documentation I doesn't found a stock
> > item for credits or about.
> 
>   Module gnome.ui has it.

Is this module part of gnome-python? I've installed pygtk and gnome-
python. But a module gnome.ui isn't exists.

help> modules gnome

Here is a list of matching modules.  Enter any module name to get more
help.

gnome (package)
gnome._gnome
gnome.applet
gnome.canvas
gnomeprint (package)
gnomeprint._print
gnomeprint.ui

Marcus

___
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] PyGtk for Windows

2004-12-19 Thread Cleber J. santos
Olá meus amigos
Não estou tendo sucesso em instalar PyGtk no Windows, tenho o Python-2.3 e 
GTK+2.4.1 Runtime environment e pygtk-2.4.1.win32-py2.3. O que falta?

Thanks
Cleber de Jesus Santos
_
MSN Hotmail, o maior webmail do Brasil.  http://www.hotmail.com
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/