I have a program (it uses wxpython 3.0.0.0), which I have
been developing for some time. It uses the dataviewctrl controller, and works
like a directory tree, e.g. it can have files, which does not have
sub-directories, and directories, which can have sub-directories. I bind an
event controller to the EVT_DATAVIEW_ITEM_CONTEXT_MENU so it expands, when I
right click an element, but when I right click an element than the last of the
displayed items gets expanded, not the one wich I have right-clicked.
I tried using the e.GetItem() and the ctrl.GetSelection() functions to determine the selected item, without success.
The attached file contains a sample program, which shows my problem. I need to expand the elements from the code, because I want to save the current status of the expanded elements, and load it later.
So, is this a
bug in wxpython, or do I miss something?
On Wednesday, September 10, 2014 12:19:52 AM UTC-7, Zsolt Endreffy wrote:
Hi,
I have a program (it uses wxpython 3.0.0.0), which I have
been developing for some time. It uses the dataviewctrl controller, and works
like a directory tree, e.g. it can have files, which does not have
sub-directories, and directories, which can have sub-directories. I bind an
event controller to the EVT_DATAVIEW_ITEM_CONTEXT_MENU so it expands, when I
right click an element, but when I right click an element than the last of the
displayed items gets expanded, not the one wich I have right-clicked.
I tried using the e.GetItem() and the ctrl.GetSelection() functions to determine the selected item, without success.
The attached file contains a sample program, which shows my problem. I need to expand the elements from the code, because I want to save the current status of the expanded elements, and load it later.
So, is this a
bug in wxpython, or do I miss something?
On Wednesday, September 10, 2014 12:19:52 AM UTC-7, Zsolt Endreffy wrote:
Hi,
I have a program (it uses wxpython 3.0.0.0), which I have
been developing for some time. It uses the dataviewctrl controller, and works
like a directory tree, e.g. it can have files, which does not have
sub-directories, and directories, which can have sub-directories. I bind an
event controller to the EVT_DATAVIEW_ITEM_CONTEXT_MENU so it expands, when I
right click an element, but when I right click an element than the last of the
displayed items gets expanded, not the one wich I have right-clicked.
I tried using the e.GetItem() and the ctrl.GetSelection() functions to determine the selected item, without success.
The attached file contains a sample program, which shows my problem. I need to expand the elements from the code, because I want to save the current status of the expanded elements, and load it later.
So, is this a
bug in wxpython, or do I miss something?