[pygtk] Rewrite behaviour on signal 'button_press_event' in
treeview
philopensource at hotmail.com
philopensource at hotmail.com
Mon Sep 12 20:38:03 WST 2005
Hi Tom,
First, i must say very good job. Your soft is very nice to use and the
source code is very clear.
You made a powerfull installer, you can print using gnomeprint, i18n
works finely.
I'm hoping i can do a software as clean as yours.
First i didn't find the behaviour then i started writing this
mail,finally i succeeded in dragging and dropping several rows.
Thanks a lot for your explanations.
regards,
Philippe Collet
Thomas Mills Hinkle wrote:
>On 9/12/05, philopensource at hotmail.com <philopensource at hotmail.com> wrote:
>
>
>
>>I use button_press_event because my problem is due to drag & drop which
>>happen only with button press_event.
>>Have you ever tryied drag and drop several rows from a treeview?
>>I think you should be surprised on the result even if you use
>>set_mode(gtk.SELECTION_MULTIPLE) or
>>
>>
>
>I use multiple-selection dnd all the time -- it's a little
>counterintuitive, but if you hold down control to select the last item
>and then drag, it works (for me anyway).
>
>Of course if you click just once, then you lose your multiple
>selections, which is a bummer, but is the expected behavior of a click
>in multiple-selection-mode.
>
>btw, I'm using exactly the same setup you are -- multiple rows from
>one treeview to another. You're welcome to poke around my source for
>help if you want, though it's not the most beautiful stuff in the
>world. I have it set up to move the selection from on treeview to the
>next and such automagically (so that if you select A & B and move them
>from treeview 1 to treeview 2, they will be selected when they arrive
>in treeview 2).
>
>If you do want to poke at the source, the relevant bits have to do
>with slTree and pTree (the two trees you can dnd between). The
>following explains the interface that code is controlling:
>http://grecipe-manager.sourceforge.net/#shopping
>
>Tom
>
>
>
>
More information about the pygtk
mailing list