Hello Andrea
I have bug when editing tree node with style wx.TR_HIDE_ROOT:
Environment is:
windows xp pro sp3 eng
wxPython2.8-win32-unicode-2.8.10.1-py25.exe
Steps to reproduce:
run testCustomTree.py
push Create root button
type some text - editor is missplaced to (0,0) corner, editor is
invisible, still can enter text blindly
close app
uncomment line:
#self.tree.SelectItem(item)
run testCustomTree.py
push Create root button
type some text - editor is NOT missplaced, editor is invisible, still
can enter text blindly
close app
uncomment line:
#parentItem.Expand()
run testCustomTree.py
push Create root button
type some text - editor is not missplaced, editor is invisible, still
can enter text blindly (same behaviour)
enter text
push Create child button
type some text - editor is not missplaced, editor is invisible, still
can enter text blindly (now same behaviour for children)
Thanks
Oleg
testCustomTree.py (1.22 KB)
···
---------- Forwarded message ----------
From: Oleg Noga <oleg.noga@gmail.com>
Date: Fri, Aug 21, 2009 at 2:27 PM
Subject: customtreectrl.py node editing bug
To: andrea.gavana@gmail.com
Hi,
2009/12/10 Oleg Noga:
From: Oleg Noga <oleg.noga@gmail.com>
Date: Fri, Aug 21, 2009 at 2:27 PM
Subject: customtreectrl.py node editing bug
To: andrea.gavana@gmail.com
Hello Andrea
I have bug when editing tree node with style wx.TR_HIDE_ROOT:
Environment is:
windows xp pro sp3 eng
wxPython2.8-win32-unicode-2.8.10.1-py25.exe
Steps to reproduce:
run testCustomTree.py
push Create root button
type some text - editor is missplaced to (0,0) corner, editor is
invisible, still can enter text blindly
close app
uncomment line:
#self.tree.SelectItem(item)
run testCustomTree.py
push Create root button
type some text - editor is NOT missplaced, editor is invisible, still
can enter text blindly
close app
uncomment line:
#parentItem.Expand()
run testCustomTree.py
push Create root button
type some text - editor is not missplaced, editor is invisible, still
can enter text blindly (same behaviour)
enter text
push Create child button
type some text - editor is not missplaced, editor is invisible, still
can enter text blindly (now same behaviour for children)
Add the following line:
self.tree.CalculatePositions()
just before the call to EditLabel.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
···
---------- Forwarded message ----------