Re: [pygtk] gtk.Notebook error

2009-11-10 Thread Alan Gauld
"Amit Sethi" wrote > I am having problem with adding pages to gtk.Notebook : I know nothing about Gtk so I could mbe missing something here but > Now while creating I do : > > def new_tab(widget,widget_render): > >notebook.new_tab(widget_render) > > notebook = SmNotebook() The

[pygtk] gtk.Notebook error

2009-07-13 Thread Amit Sethi
Hi , I am having problem with adding pages to gtk.Notebook : What I want is to be able to pass a random container widget to a new tab: thus my code is : class SmNotebook(gtk.Notebook): def __init__(self): gtk.Notebook.__init__(self) #set the tab proper

[pygtk] gtk.Notebook

2008-07-09 Thread [EMAIL PROTECTED]
In gtk notebook page_num(child) being a widget Returns : the index of the page containing child, or -1 So here is the problem: Added button to tab for close so I need the page the button is on since the button grabs focus rather than the tab. I tried emit back to parent and that failed to

Re: [pygtk] gtk.Notebook

2008-01-07 Thread Sylvain Saleur
Hello. I just copy a small program I've done which generate a notebook with a close button. Hopefully it will be helpful for you. #!/usr/bin/env python # -*- coding:utf-8 -*- # notebook.py import pygtk pygtk.require('2.0') import gtk class NotebookExample: def add_icon_to_button(self,butt

Re: [pygtk] gtk.Notebook

2008-01-07 Thread Seltzer
if using PyGTK 2.4, maybe try moving your connect down further, and sending the index that append_page returns to your handler. something like... ... page = self.mdi_book.append_page(scroller,hbox) btn.connect('clicked', self.on_close_btn, page) ... def on_close_btn(self, widget,da

[pygtk] gtk.Notebook

2008-01-06 Thread [EMAIL PROTECTED]
In gtk notebook page_num(child) being a widget Returns : the index of the page containing child, or -1 So here is the problem: Added button to tab for close so I need the page the button is on since the button grabs focus rather than the tab. I tried emit back to parent and that failed to produc

Re: [pygtk] gtk.Notebook dnd to other widgets [SOLVED]

2007-05-06 Thread N. Volbers
Gian Mario Tagliaretti schrieb: > 2007/5/6, N. Volbers <[EMAIL PROTECTED]>: > >> I found the problem! The documentation is wrong. If you look at the >> original API documentation of gtk+, it will say that the target is >> "GTK_NOTEBOOK_TAB" and not (like it says in the pygtk documentation) >> "gtk

Re: [pygtk] gtk.Notebook dnd to other widgets [SOLVED]

2007-05-06 Thread Gian Mario Tagliaretti
2007/5/6, N. Volbers <[EMAIL PROTECTED]>: I found the problem! The documentation is wrong. If you look at the original API documentation of gtk+, it will say that the target is "GTK_NOTEBOOK_TAB" and not (like it says in the pygtk documentation) "gtk.NOTEBOOK_TAB". gtk.NOTEBOOK_TAB is the pyth

Re: [pygtk] gtk.Notebook dnd to other widgets [SOLVED]

2007-05-06 Thread N. Volbers
Niklas Volbers schrieb: > Hi everyone! > > I am using the reorderable and detachable properties of gtk.Notebook tabs > (pygtk 2.10). > > Now I wanted to implement dragging a notebook tab to an event box, but > somehow my event box will not respond to the dnd event from the notebook tab. > I am

[pygtk] gtk.Notebook dnd to other widgets

2007-05-04 Thread Niklas Volbers
Hi everyone! I am using the reorderable and detachable properties of gtk.Notebook tabs (pygtk 2.10). Now I wanted to implement dragging a notebook tab to an event box, but somehow my event box will not respond to the dnd event from the notebook tab. I am not sure if I set up the target properl

Re: [pygtk] gtk.Notebook()

2005-08-19 Thread Gian Mario Tagliaretti
2005/8/19, Luigi Pantano <[EMAIL PROTECTED]>: > How to change the tab position like gaim? if I understood correctly: http://www.pygtk.org/pygtk2reference/class-gtknotebook.html#method-gtknotebook--set-tab-pos ciao -- Gian Mario Tagliaretti PyGTK GUI programming http://www.parafernalia.org/pygtk/

[pygtk] gtk.Notebook()

2005-08-19 Thread Luigi Pantano
How to change the tab position like gaim? -- Luigi Pantano --- IPUG - Italian Python User Group www.italianpug.org https://py-tips-tricks.python-hosting.com/ ---

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

2005-06-02 Thread dimitri pater
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 createProjectGraphp1 = self.axis.bar(ind, int(age), width, color='r')ValueError: invalid literal for int(): You should enter two  values before creating t

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 ve

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

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,

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

2005-05-31 Thread dimitri pater
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. DimitriOn 5/31/05, John Gill <[EMAIL PROTECTED]> wrote: I think this might be a matplotlib issue. I've been having some refresh issues with matplotlib since

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

2005-05-31 Thread John Gill
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 i

[pygtk] Gtk.Notebook problem in PyGTK 2.6

2005-05-30 Thread dimitri pater
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 som

Re: [pygtk] gtk.Notebook

2005-03-23 Thread Chris Lambacher
you can always impliment a wizard using a Notebook with no tabs and a couple of buttons at the bottom of the screen, which is what I did for one of my apps. -Chris On Wed, 23 Mar 2005 17:17:38 +0100, Andy Wingo <[EMAIL PROTECTED]> wrote: > Hi Nikos, > > Fluendo has written some GPL wizard frame

Re: [pygtk] gtk.Notebook

2005-03-23 Thread Andy Wingo
Hi Nikos, Fluendo has written some GPL wizard frameworks using glade, etc. Don't know if that fits with your licensing requirements. You'd probably be interested in the simple one here: https://core.fluendo.com/trac/cgi-bin/trac.cgi/file/flumotion/trunk/flumotion/admin/gtk/wizard.py Here's an ex

Re: [pygtk] gtk.Notebook

2005-03-23 Thread Thomas Mills Hinkle
> Gtk doesn't, but there is a GnomeDruid and Glade supports it too. At > one point in time I was trying to stick solely with Gtk so I used the > GtkNotebook and hid the tabs. Then switched pages whenever the user hit > the Next and Previous buttons. I was recently in a similar situation -- I want

Re: [pygtk] gtk.Notebook

2005-03-23 Thread Steve McClure
On Wed, 2005-03-23 at 09:21, Nikos Kouremenos wrote: > On Wed, 23 Mar 2005 08:43:39 -0300, Christian Reis <[EMAIL PROTECTED]> wrote: > > This is a classical wizard. > I also believe it's a classical wizard situation. GTK doesn't have a > wizard widget or am I wrong? > If I'm right (I must be :^))

Re: [pygtk] gtk.Notebook

2005-03-23 Thread Nikos Kouremenos
On Wed, 23 Mar 2005 08:43:39 -0300, Christian Reis <[EMAIL PROTECTED]> wrote: > This is a classical wizard. I also believe it's a classical wizard situation. GTK doesn't have a wizard widget or am I wrong? If I'm right (I must be :^)) what's the proposed way of implementing a wizard in GTK? [I'm a

Re: [pygtk] gtk.Notebook

2005-03-23 Thread Christian Reis
On Tue, Mar 22, 2005 at 07:16:03PM +0200, Paul Malherbe wrote: > It is a financial program. The basics are as follows: > > Page 1 > > The operator enters the details of e.g. a payment i.e. date, reference > number amount, description etc. > > Page 2 > > The operator allocates the amount to one

Re: [pygtk] gtk.Notebook

2005-03-22 Thread Paul Malherbe
> On Tue, Mar 22, 2005 at 06:47:39PM +0200, Paul Malherbe wrote: >> The problem I have is that responses on one page of the notebook can >> determine which of the other pages should be accessed. Also I need the >> data to be entered in a logical sequence therefore I would like to >> disable >> acce

Re: [pygtk] gtk.Notebook

2005-03-22 Thread Christian Robottom Reis
On Tue, Mar 22, 2005 at 06:47:39PM +0200, Paul Malherbe wrote: > The problem I have is that responses on one page of the notebook can > determine which of the other pages should be accessed. Also I need the > data to be entered in a logical sequence therefore I would like to disable > access to the

Re: [pygtk] gtk.Notebook

2005-03-22 Thread Paul Malherbe
> On Mon, 21 Mar 2005 23:01:55 +0200 (SAST), Paul Malherbe > <[EMAIL PROTECTED]> wrote: >> I am writing a program using gtk.Notebook with about five pages. >> The question therefore is how can I selectively disallow access to these >> pages. > > hm, someone some weeks ago wanted to "disable" (deact

Re: [pygtk] gtk.Notebook

2005-03-22 Thread Nikos Kouremenos
On Mon, 21 Mar 2005 23:01:55 +0200 (SAST), Paul Malherbe <[EMAIL PROTECTED]> wrote: > I am writing a program using gtk.Notebook with about five pages. > The question therefore is how can I selectively disallow access to these > pages. hm, someone some weeks ago wanted to "disable" (deactivate) tab

[pygtk] gtk.Notebook

2005-03-21 Thread Paul Malherbe
Hi I need some help, please. I am writing a program using gtk.Notebook with about five pages. Depending on various conditions certain pages of the Notebook should not be available at certain times. The question therefore is how can I selectively disallow access to these pages. Thanks Paul __