Dear Colomban,
thanks for your great hint.
> You get inserted/deleted signals for moved rows so you can know
> when and how things changed if needed
This signals are also emited when I manually insert and delete data in
the model. How do I know if a insert/delete signal was caused by a drag
and
If it's only for reordering the elements in the tree view, you can use
the built-in Gtk.TreeView.set_reorderable() method [1], and you're all
set. You get inserted/deleted signals for moved rows so you can know
when and how things changed if needed, and the underlying model is also
changing ac
Le 27/07/2018 à 23:05, c.buhtz--- via gtk-app-devel-list a écrit :
> Dear Reuben
>
> On 2018-07-23 08:03 Reuben Rissler wrote:
>> This is how I have done it in the past. Note, I do not proclaim
>> spectacular or Pythonic code, and would humbly accept any corrections
>> and/or better ways to acc
Dear Reuben
On 2018-07-23 08:03 Reuben Rissler wrote:
> This is how I have done it in the past. Note, I do not proclaim
> spectacular or Pythonic code, and would humbly accept any corrections
> and/or better ways to accomplish this. It seems to me there should be
> a way to let the TreeView do
On 07/22/2018 04:26 PM, c.buhtz--- via gtk-app-devel-list wrote:
I am totally confused about this topic. I think I miss some fundamental
understanding on how PyGObject works here.
I want to drag & drop items of one TreeView inside itself. Not other
widgets or applications. I just want to drag it
I see attachments are removed
This is the code
#!/usr/bin/env python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
from gi.repository import Gdk
class MainWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="TreeView Drag and Drop")