Dear All.
I use wx.ListCtrl class.
My question is :
1. How to call/triger wx.ListCtrl.DeleteItem() with a pres of "Del"
Key
(not a button/Menu) ?
2. The EVT_LIST_DELETE_ITEM, Is it called "Before" or "after"
wx.ListCtrl.DeleteItem() completed ?
Sincerely
-bino-
Dear All ..
Please Ignore my previouse post.
I solved it with :
self.Bind(wx.EVT_LIST_KEY_DOWN, self.ListEvtKeyDown, self.list_ctrl_1)
and
def ListEvtKeyDown(self, event): # wxGlade: MyFrame1.<event_handler>
keycode = event.GetKeyCode()
#print "Event handler `ListEvtKeyDown' " + str(keycode)
if keycode == wx.WXK_DELETE:
self.list_ctrl_1.DeleteItem(self.list_ctrl_1.GetFocusedItem())
Thankyou
Sincerely
-bino-
binooetomo wrote:
ยทยทยท
Dear All.
I use wx.ListCtrl class.
My question is :
1. How to call/triger wx.ListCtrl.DeleteItem() with a pres of "Del"
Key
(not a button/Menu) ?
2. The EVT_LIST_DELETE_ITEM, Is it called "Before" or "after"
wx.ListCtrl.DeleteItem() completed ?
Sincerely
-bino-