[pygtk] yet another gtk.Notebook question

2007-05-06 Thread N. Volbers
After having solved my first problem, I now have another one: When I retrieve a drag-drop event, I would like to know, which notebook tab was dropped. In the C API, the example looks like this: static void on_drop_zone_drag_data_received (GtkWidget*widget,

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

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

Re: [pygtk] Close button in notebook tab

2007-05-05 Thread N. Volbers
Sylvain Saleur schrieb: > Hi! > > I managed to create a custom tab with a close button. My problem is that > when I click on a non-focused tab's close button, it close the focused > tab... > > Do you have any suggestion? > > I look forward to hearing from you. > > Bests. > > Sylvain Saleur >

Re: [pygtk] adding a close button to a notebook

2006-10-22 Thread N. Volbers
Tony Nelson schrieb: At 8:36 AM +0200 10/20/06, N. Volbers wrote: Hello everyone, I am using a notebook for a sort of tabbed interface a la Firefox. Currently, there is a close button for each tab, positioned in the tab widget. However, I would like to have just a single close button at

[pygtk] adding a close button to a notebook

2006-10-20 Thread N. Volbers
Hello everyone, I am using a notebook for a sort of tabbed interface a la Firefox. Currently, there is a close button for each tab, positioned in the tab widget. However, I would like to have just a single close button at the very right of the notebook (again, just like Firefox does). Is there

Re: [pygtk] passing data to actions invoked by popup

2006-04-01 Thread N. Volbers
Nikos Kouremenos wrote: On 4/1/06, N. Volbers <[EMAIL PROTECTED]> wrote: Hello Nikos, Nikos Kouremenos wrote: menu.popup() normally accepts additonal data. but PyGTK devs wrapped it bad so in PyGTK world it doesn't. I have reported this in BT. your ugly solution is wha

Re: [pygtk] passing data to actions invoked by popup

2006-04-01 Thread N. Volbers
Hello Nikos, Nikos Kouremenos wrote: menu.popup() normally accepts additonal data. but PyGTK devs wrapped it bad so in PyGTK world it doesn't. I have reported this in BT. your ugly solution is what I also do. well not global but class variable which is the same 'bad' I filed a bug report.

[pygtk] passing data to actions invoked by popup

2006-03-30 Thread N. Volbers
Hello everyone, in my applications I have different tool widgets, very similar to the dockable tools in gimp, and they all have a button at the top-right that opens up a popup menu when pressed. This popup allows to add other tools, so for this reason, the popup is always the same. Unfortuna

[pygtk] two treeview problems, this time with attachment

2006-02-20 Thread N. Volbers
Hello everyone on the list, I have two questions regarding the treeview widget: (1) (see attached sample script) Using a CellRendererCombo it is possible to manipulate the model data by choosing a value from the combo. Clicking on 'apply' in the sample script will dump the values in the model to

[pygtk] two treeview problems

2006-02-20 Thread N. Volbers
Hello everyone on the list, I have two questions regarding the treeview widget: (1) (see attached sample script) Using a CellRendererCombo it is possible to manipulate the model data by choosing a value from the combo. Clicking on 'apply' in the sample script will dump the values in the model

[pygtk] ruler widget deprecated?

2006-01-30 Thread N. Volbers
Hello everyone, I intended to add rulers to my matplotlib canvas widget, but then I have read in the reference that the ruler widget (and hruler, vruler) is deprecated and will be moved to another package. To which package? Should I use it at all or is there an alternative implementation? Re

Re: [pygtk] SpinButton and a value of None

2005-11-28 Thread N. Volbers
Graham Ashton schrieb: On Thursday 24 November, N. Volbers wrote: My second problem arises due to the fact that it should be possible to specify no value at all. [snip] Am I missing something obvious? I would appreciate any suggestions on this. If you want a single widget that

[pygtk] SpinButton and a value of None

2005-11-24 Thread N. Volbers
Hello everyone, I replaced some gtk.Entry widgets by the more appropriate gtk.SpinButton widgets. 'More appropriate' means that the user needs to enter an integer number > 0 and a spin button seemed predetermined for this. My first problem, which I finally solved, was that I have to set both

Re: [pygtk] How to package the GTK envirement and the pyGTK with application?

2005-11-20 Thread N. Volbers
batfree schrieb: I need my application to run on Windows without GTK,pyGTK ,python.How can I package these into a standalone application?Can any one help me? ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read th

Re: [pygtk] question about graphs

2005-09-12 Thread N. Volbers
nephish schrieb: hello there, i have an app here at work that i am working on, and i want to do some simple (keyword - simple) graphs. Nothing really fancy. Where would be the best place to look for how to do this ? i use debian linux, and python 2.3 thanks __

Re: [pygtk] underscore in treeviewcolum title

2005-09-04 Thread N. Volbers
Gian Mario Tagliaretti schrieb: 2005/9/4, N. Volbers <[EMAIL PROTECTED]>: Hello list, when I try to set the title of a TreeViewColumn to a name like 'a_name', then the underscore will be interpreted (as accelerator?) such that it will appear as 'aname' with

[pygtk] underscore in treeviewcolum title

2005-09-04 Thread N. Volbers
Hello list, when I try to set the title of a TreeViewColumn to a name like 'a_name', then the underscore will be interpreted (as accelerator?) such that it will appear as 'aname' with an underscore under the 'n'. How can I turn off that behavior or how can I insert a true underscore? I tried

Re: [pygtk] Undo and Redo

2005-09-04 Thread N. Volbers
Jens Geiregat schrieb: Hi, I would like to add undo and redo buttons to my program. The problem is I do not have any idea how to implement the undo and redo-actions. Are there some (easy) examples on this subject? Or other (small) pygtk-programs that support undo and redo? Hello Jens, you

Re: [pygtk] refreshing a treeview

2005-06-22 Thread N. Volbers
Prash schrieb: You could try the widget.queue_redraw as Niklas suggested in the 'treeview signals' thread. It may work .. I'll try it when I'm home tonight. On 6/22/05, Alexei Gilchrist <[EMAIL PROTECTED]> wrote: Hi, how do I refresh a treeview? I have a function which changes the scale of t

Re: [pygtk] Treeview signals

2005-06-21 Thread N. Volbers
Hello, Prash wrote: What signal is emitted when a user clicks on a row? I've tried a few like row_activated but it emits a signal only when "return" is pressed. If you mean "double click on a row", try 'row-activated'. If you really want to catch basic mouse clicks, try 'button-pressed-event

Re: [pygtk] Popup-menus

2005-06-21 Thread N. Volbers
Eric Jardim schrieb: Hi, all... What do you know about this "popup-menu" event of the gtk.Widget class? Why it is not activated when someone right-click the widget? Anyway, it still can be stimulated by a method calling, isn't it? Why do people have to do catch the button_press_event, what is a

Re: [pygtk] Plugs and Sockets - newbie questions

2005-05-23 Thread N. Volbers
Sebastien Aubry schrieb: Hello, The documentation about Plugs and Sockets did not allow me to find out whether they can be used to embed anything: - can they only be used to embed PyGtk widgets into another PyGtk window? - or can I embed anything using plugs and sockets ? You can embed any

Re: [pygtk] Wrapping Gtksheet

2005-05-21 Thread N. Volbers
N. Volbers schrieb: Christian Robottom Reis schrieb: On Thu, May 19, 2005 at 12:07:16PM +, Philippe Collet wrote: First reason is because of the futur implementations that can be done in the program i want to realize, it seems a better idea to integrate gtksheet now instead of

Re: [pygtk] Wrapping Gtksheet

2005-05-21 Thread N. Volbers
Christian Robottom Reis schrieb: On Thu, May 19, 2005 at 12:07:16PM +, Philippe Collet wrote: First reason is because of the futur implementations that can be done in the program i want to realize, it seems a better idea to integrate gtksheet now instead of integrating gtkgrid for the mome

Re: [pygtk] Wrapping Gtksheet

2005-05-18 Thread N. Volbers
Hello, I just wanted to let you know that I would be willing to help with this. I am in dire need of a GtkGrid/PyGrid-like solution, and I would love to see this included in the standard gtk+ library. As I am not a very good C programmer (even though I understand C code pretty good), I could as

Re: [pygtk] Select a specific cell on a TreeView

2005-05-16 Thread N. Volbers
Mauricio Tellez schrieb: Hi, I have a TreeView with 3 columns all the columns has a CellRendererText. What I want is that when the user click a specific cell, said row 2, column 1, only that cell get highlighted, not the entire row 2. Is posible to do this? How? Thanks in advance. No, this is not p

[pygtk] dockable toolbar windows a la GIMP

2005-04-27 Thread N. Volbers
Hello everyone, I am looking for a pygtk equivalent of the window handling a la GIMP, i.e. the ability to group windows together by dragging them on docking areas or group windows into a notebook. Are there any ready solutions :-) ? I have started my own implementation of this (except for the d

[pygtk] gtk.dsextras ?

2005-04-16 Thread N. Volbers
Hello everyone, today I tried to build pygrid, which are the python bindings to gtkGrid. I receive an error, complaining that gtk.dsextras is not found. However, there is a file 'dsextras.py' in the site-packages/gtk-2.0 directory. Is this file deprecated or why is it not included ? What do I ha

[pygtk] how to redirect logging handlers?

2005-03-27 Thread N. Volbers
Hello everyone, my app makes extensive use of the python 'logging' module. For easier development I would like to have a window with a treeview that should contain one entry for every log message sent. Is there any way to add a Handler so that the message is somehow sent to my treeview? Best reg