"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
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
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
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
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
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
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
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
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
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
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/
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/
---
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
> "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
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
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,
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
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
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
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
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
> 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
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 :^))
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
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
> 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
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
> 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
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
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
__
30 matches
Mail list logo