Re: [Matplotlib-users] Re: [pygtk] Gtk.Notebook problem in PyGTK 2.6

2005-06-01 Thread John Hunter
> "Steve" == Steve Chaplin <[EMAIL PROTECTED]> writes:

Steve> Try running embedding_in_gtk.py and moving another window
Steve> partly in front of it, then click the embedding_in_gtk
Steve> window to bring it back on top - does the window get
Steve> redrawn?

Steve> I can verify that on PyGTK 2.4 on Linux it works fine.
Steve> Could you test it on PyGTK 2.6, and also report the
Steve> operating system you are using.

I get the problem in Ubuntu Hoary Hedgehog ( 2.16.10 I think), with a
normal mpl pylab figure in GTKAgg.  It is hard to see with normal
figure sizes, because the tooltips by default appear below the toolbar
and thus do not occlude the FigureCanvas, but if you resize the figure
so that it takes up the entire vertical extent of the desktop, and
then hover over the toolbar, the tooltips will occlude the canvas and
will expose the bug -- no pun intended :-)  The basic problem is that
the area occluded by the tooltip is not redrawn when, for example, you
hover over a different toolbar button.

JDH
___
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: [Matplotlib-users] Re: [pygtk] Gtk.Notebook problem in PyGTK 2.6

2005-06-01 Thread Steve Chaplin
On Wed, 2005-06-01 at 05:12 -0700, matplotlib-users-
[EMAIL PROTECTED] wrote:
> > I made a small test app which clearly shows that Matplotlib 0.8 and
> > PyGTK 2.6 don't work well together. No problem in PyGTK 2.4
> > 
> > bye,
> > Dimtiri

I have problems with it in PyGTK 2.4

$ python testMPL-GTK.py
(testMPL-GTK.py:12685): libglade-WARNING **: unknown property
`focus_on_map' for class `GtkWindow'

(testMPL-GTK.py:12685): libglade-WARNING **: unknown property
`ellipsize' for class `GtkLabel'
...

I then click on the 'graph' Tab and the 'make graph!' button and get:
Traceback (most recent call last):
  File "testMPL-GTK.py", line 55, in createProjectGraph
p1 = self.axis.bar(ind, int(age), width, color='r')
ValueError: invalid literal for int():


Do you think this is a gtk.Notebook problem or a matplotlib
FigureCanvasGTK widget problem?
If its a FigureCanvasGTK problem then you should be able to forget about
the gtk.Notebook and run
matplotlib/examples/embedding_in_gtk.py, or 
matplotlib/examples/embedding_in_gtk2.py and demonstrate the problem.

Try running embedding_in_gtk.py and moving another window partly in
front of it, then click the embedding_in_gtk window to bring it back on
top - does the window get redrawn?

I can verify that on PyGTK 2.4 on Linux it works fine.
Could you test it on PyGTK 2.6, and also report the operating system you
are using.

Steve

Send instant messages to your online friends http://au.messenger.yahoo.com 
___
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] gtk.TreeStore with variable column count ?

2005-06-01 Thread David M. Cook
On Wed, Jun 01, 2005 at 08:54:52AM +, Adrian Immler wrote:

> how can i create a gtk.TreeStore with a variable count of the columns ?
> how can i add/remove columns from a TreeStore ?

I don't think it's possible to add/remove columns from an existing store.  

Instead I would suggest using objects (which could just be dictionaries) in
your TreeStore together with a TreeView data func.  This gives you lots of
flexibility.  Alternatively, you could get a TreeModelFilter from your
model. See the tutorial for more info.

Dave Cook



___
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] Fullscreen application

2005-06-01 Thread Gustavo J. A. M. Carneiro
On Wed, 2005-06-01 at 21:00 +0100, Prash wrote:
> Peeps,
> 
> I've read a few posts on fullscreen but have not managed to get
> fullscreen (I really mean fullscreen and not just maximize). It should
> cover every bit of the screen. I'm writing an app which will work like
> a logon screen. I'm running KDE in a kiosk like mode and have disabled
> short cuts etc.
>  How do i get it to start full screen? If I use maximize() on a
> gtk::window object it maximizes but does not go fullscreen.

  gtk.Window.fullscreen()

  It really can't get any more obvious than that.. :-)


>   Here's my
> code:
> 
> import pygtk
> import gtk
> import gtk.glade
> 
> class MyUI:
>   def __init__(self):
>  gladefile = "ui/myui.glade"
>  windowname = "mywindow"
>  self.wTree = gtk.glade.XML(gladefile,windowname)
>  self.win = self.wTree.get_widget("mywindow")
>  self.win.maximize()
> kui = MyUI()
> gtk.main()
> 
> 
> Thanks
> Prash
> ___
> 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/
-- 
Gustavo J. A. M. Carneiro
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
The universe is always one step beyond logic

___
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] Fullscreen application

2005-06-01 Thread Prash
Peeps,

I've read a few posts on fullscreen but have not managed to get
fullscreen (I really mean fullscreen and not just maximize). It should
cover every bit of the screen. I'm writing an app which will work like
a logon screen. I'm running KDE in a kiosk like mode and have disabled
short cuts etc.
 How do i get it to start full screen? If I use maximize() on a
gtk::window object it maximizes but does not go fullscreen.  Here's my
code:

import pygtk
import gtk
import gtk.glade

class MyUI:
  def __init__(self):
 gladefile = "ui/myui.glade"
 windowname = "mywindow"
 self.wTree = gtk.glade.XML(gladefile,windowname)
 self.win = self.wTree.get_widget("mywindow")
 self.win.maximize()
kui = MyUI()
gtk.main()


Thanks
Prash
___
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: [Matplotlib-users] Re: [pygtk] Gtk.Notebook problem in PyGTK 2.6

2005-06-01 Thread dimitri pater
I made a small test app which clearly shows that Matplotlib 0.8 and PyGTK 2.6 don't work well together. No problem in PyGTK 2.4

bye,
DimtiriOn 6/1/05, N. Volbers <[EMAIL PROTECTED]> wrote:
dimitri pater schrieb:> Yes, this could could very well be a matplotlib issue. I will try to> do some tests, thanks for cc'ing it to the matplotlib list.>> Dimitri>> On 5/31/05, *John Gill* <
[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote:>> I think this might be a matplotlib issue.
>> I've been having some refresh issues with matplotlib since> switching to 2.6.  In particular I've noticed that if I put my> mouse over the toolbar and let a tooltip pop up the canvas does
> not get repainted.>> Up to now I'd been assuming this problem was isolated to me (I use> ratpoison as a window manager, which can confuse some apps).>> I've cc'ed the matplotlib list in case anyone can throw some light
> on this.>> John>> dimitri pater wrote:>>> Hello,>> I upgraded to PyGTK 2.6 from 2.4 . Now, when I switch from page 2>> on a 
Gtk.Notebook back to page 1, page 1 still shows some>> elements from page 2 (it is not refreshed, just some parts). Both>> pages contain graphs created with Matplotlib. I never had>> problems like this with 
2.4...>> Any clues somebody? If necessary, I will attach the source files. Best regards,>> Dimitri
___>>pygtk mailing list>>pygtk@daa.com.au pygtk@daa.com.au
>>>http://www.daa.com.au/mailman/listinfo/pygtk>>Read the PyGTK FAQ:>>http://www.async.com.br/faq/pygtk/
 --> Please visit dimitri's website: www.serpia.com 
I can confirm this (mis)behaviour with matplotlib 0.80 and gtk+/pygtk2.6.  I had wanted to look into this matter, but didn't yet have time todo it.  A simple guess would be that the expose-event is not handled
properly by the GTK backend.I noticed the problem when I put a menu-bar over a matplotlib GTKCanvas.  When you leave an opened menu, the menu will not disappear.Niklas.
-- Please visit dimitri's website: www.serpia.com


testMPL-GTK.py
Description: application/python


project1.glade
Description: Binary data
___
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] Rhythmbox-style "stars" in ListView

2005-06-01 Thread Nikos Kouremenos
thomas, searching the arhcives never hurts.
http://www.daa.com.au/pipermail/pygtk/2005-May/010135.html

On 6/1/05, Thomas Mills Hinkle <[EMAIL PROTECTED]> wrote:
> Hello all.
> 
> I would like to use rhythmbox's rating star-system in my pygtk
> application. For those not familiar, rhythmbox shows a nice widget
> with five stars, where the user can click to make more or fewer stars
> appear.
> 
> Am I right to assume that doing this would require me to:
> A. Find rhythmboxes icons/bitmaps, whatever and copy them
> B. Create a custom widget (subclassing whatever sliders and number-boxes use)
> C. Make that Custom Widget work as a CustomCellRenderer
> 
> This sounds a bit daunting. There's not an easier way that I'm
> missing, is there? If not, I may try to first take on the problem of
> simply embedding a number box for the rating before I get fancy... I
> know that with the latest pygtk, ComboBoxes in cellrenderers got a lot
> easier -- is it any easier to embed other widgets yet?

-- 
Nikos Kouremenos | Jabber ID: [EMAIL PROTECTED] | http://members.hellug.gr/nkour
___
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] Rhythmbox-style "stars" in ListView

2005-06-01 Thread Thomas Mills Hinkle
Hello all.

I would like to use rhythmbox's rating star-system in my pygtk
application. For those not familiar, rhythmbox shows a nice widget
with five stars, where the user can click to make more or fewer stars
appear.

Am I right to assume that doing this would require me to:
A. Find rhythmboxes icons/bitmaps, whatever and copy them
B. Create a custom widget (subclassing whatever sliders and number-boxes use)
C. Make that Custom Widget work as a CustomCellRenderer

This sounds a bit daunting. There's not an easier way that I'm
missing, is there? If not, I may try to first take on the problem of
simply embedding a number box for the rating before I get fancy... I
know that with the latest pygtk, ComboBoxes in cellrenderers got a lot
easier -- is it any easier to embed other widgets yet?

Tom
___
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] gtk.TreeStore with variable column count ?

2005-06-01 Thread Adrian Immler
how can i create a gtk.TreeStore with a variable count of the columns ?

or

how can i add/remove columns from a TreeStore ?

i need to draw a table like in gnumeric where i don't know how many
columns i need so i will have to contruct it dynamically, any ideas ?

thanks in advance,

adrian
___
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] sourceview and gtkmozembed for windows

2005-06-01 Thread Cedric Gustin
Hi Pier,

pier carteri wrote:

> any idea where I can find packages for windows platform of 
> gtksourceview  and gtkmozembed.
> I know both of them should be portable to win but I'm not able  to 
> find  any  infos  on how  to  do  it .
> At the moment I don't have an environment for compiling C code under
> windows so if you answer is "download the tarball and compile yourself "
> please give me some infos about the simplest way to obtain the
> environment (cygwin, ..others?)

If you want to go ahead and compile those packages yourself on win32,
you will need

1. A GTK+ development environment (http://gladewin32.sf.net)
2. A gcc-compiler that produces native code on win32 : mingw
(http://www.mingw.org)
3. A unix-like environment, including shells and tools : you can choose
between cygwin (http://www.cygwin.com) or msys
(http://www.mingw.org/msys.shtml). Please note that if you select
cygwin, you will have to modify your PATH in such a way that gcc from
the mingw distribution is called instead of cygwin-gcc, as executables
or libraries built using cygwin-gcc are not native and depend on the
cygwin DLL (posix layer)

You might also have to modify the configure.in and Makefile.am files in
the source distribution of gtksourceview  and gtkmozembed, and add some
win32 specific macros/options. I strongly recommend you to have a look
at the corresponding files in the latest GTK+ or gtkmm source tarball.

Cedric

P.S. : I think gtksourceview has already been ported to win32 for the
mono project.
___
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] sourceview and gtkmozembed for windows

2005-06-01 Thread pier carteri
Hi to all,
any idea where I can find packages for windows platform of  gtksourceview  and gtkmozembed.
I know both of them should be portable to win but I'm not able 
to  find  any  infos  on how  to 
do  it .
At the moment I don't have an environment for compiling C code under
windows so if you answer is "download the tarball and compile yourself
" please give me some infos about the simplest way to obtain the
environment (cygwin, ..others?)

Thank you!

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