473,396 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

wxTreeCtrl event bug only win32?

Hello
Im having problem, wxTreeCtrl generate 3 x EVT_TREE_SEL_CHANGED on click
item right button mouse. This problem only win32. Why?
Simple example:

from wxPython.wx import *
class MyApp(wxApp):
def OnInit(self):
frame = wxFrame(NULL, -1, "wxPython",
wxDefaultPosition,wxSize(200,150))
frame.Show(true)
self.nr = 0
self.SetTopWindow(frame)
self.ID_TREE = wxNewId()
self.tree = wxTreeCtrl(frame, self.ID_TREE)
root = self.tree.AddRoot('root test event')
itm = self.tree.AppendItem(root, 'Right click first item')
itm = self.tree.AppendItem(root, 'Right click next item')
EVT_TREE_SEL_CHANGED (self, self.ID_TREE, self.ItemChanged)
return True

def ItemChanged(self, event):
self.nr += 1
print self.nr

app = MyApp(0)
app.MainLoop()


Jul 18 '05 #1
1 1700
Krzysztof Kaczkowski <kr*******@py142.wroclaw.sdi.tpnet.pl> pisze:
Im having problem, wxTreeCtrl generate 3 x EVT_TREE_SEL_CHANGED on click
item right button mouse. This problem only win32. Why?


Maybe you should subscribe wxpython-users list and ask this question
there? I'm pretty sure, that you will find much broader audience than
here. And of course Robin Dunn also subscribes this list...

--
Jarek Zgoda
Registered Linux User #-1
http://www.zgoda.biz/ JID:ja***@jabberpl.org http://zgoda.jogger.pl/
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brendan | last post by:
Hello, I am looking for any pointers on creating a Tree control which can render html snippets as labels. On each leaf of the tree I want to show text, but with more formatting than is...
1
by: Piet | last post by:
Hi there. I have a problem when working with a wxTreeCtrl. I would like to expand all branches of a sepcific position in a tree with a single command. Since there does not appear to be such a...
0
by: danielpm72 | last post by:
Hi, I want to read a wxTreeCtrl from the root since I want to store all the information in it in a python dictionary. I know that the methods I have to use are ItemHasChildren, GetFirstChild and...
0
by: Gnaneshwar Babu | last post by:
Hi I am facing a problem with extracting event logs of win32 to a file. Am using the following code to extract eventlogs to file use Win32::EventLog; $handle=Win32::EventLog->new("System",...
0
by: Manfred Braun | last post by:
Hi All, I am trying to fetch system-events, and I am successful with "TimeChanged", but cannot get "SessionEnding". I am not an OO expert and so - just to be sure - I made all my methods public...
3
by: bb | last post by:
I have a windows network device driver written in c++ and a user interface im porting to c#, my problem is i dont seem to be getting notified of the event calls from the driver to the c# app im...
6
by: Jon | last post by:
I have a service program that creates a crystal report and prints the report to a named printer driver. The printer driver raises an event when it is finished. I am supposed to trap for the...
1
by: mitsura | last post by:
Hi, it is possible to change the font (bold, underline, italic) in the text used in a wxTreeCtrl? I looked in the wxPython demo but I can't find anything. Any help much appreciated. Kris
0
by: eC | last post by:
I use a tree control in my application and was hoping to use use the GetItemText method to read the new label of the tree item after the user has edited it. So in the EVT_TREE_END_LABEL_EDIT event...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.