Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#20 Anchors not working in designer

open
nobody
Bug fix (17)
5
2005-04-07
2005-04-07
Alex Verstraeten
No

Anchors not working in designer
When I right click at an anchor the wxMenu pops up, I
click on it to check/uncheck but it has no effect at
all.. although it works fine If I modify its value from
the inspector.

I've been testing this out on:
Windows XP Professional

python 2.4
wxPython 2.5
boa 0.4.0

it was a fresh install of the following packages:

python-2.4.msi
wxPython2.5-win32-unicode-2.5.4.1-py24.exe
boa-constructor-0.4.0.win32.exe

the fix is to change the file Views/SelectionTags.py

def OnAnchorToggle(self, event):
anchor = not event.Checked()

to this

def OnAnchorToggle(self, event):
anchor = event.Checked()

you can also consider using IsChecked instead of
Checked since it has been deprecated.

I guess this problem only occurs with wxpython 2.5,
maybe the menu event now gets triggered "after" the
value is changed. but I didn't try it on wxpy2.4

just my little collaboration...hope it helps!
keep the good stuff comming!

Discussion