Will McGugan wrote:
[---]
> You should use the keycode constants.
>
> http://www.wxwidgets.org/manuals/2.6.1/wx_keycodes.html#keycodes
[---]
Excellent! Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
In case you want some advises for your code:
-backslashes are not necesseary when you declare list or dict on many lines.
I didn't pay attention at the semantic of your code, but after giving a quick look, you can simplify things like:
BRUSHSTYLENAMES = ['Transparent', 'Solid', 'BDiagonalHatch'
Jan Danielsson wrote:
.
>
>Oh, I do have one more question though. I'm using wxPython, and when
> I check for keys I use the evt.GetKeyCode() call, and compare it with
> integers which I have found by printing what event.GetKeyCode() returns.
> I would prefer a more portable way, since I assum
Dark Cowherd wrote:
[---]
> In case you are interested in bug report.
Always!
> class LineTool
> method OnLeftUp
> needs
> self.done = True
>
> or else if you are in Line mode and you just click with out moving the
> mouse you get an error.
Many thanks; I can't believe I hadn't stumbled a
Hmm,
I was looking at the code as I am also learning Python.
In case you are interested in bug report.
class LineTool
method OnLeftUp
needs
self.done = True
or else if you are in Line mode and you just click with out moving the
mouse you get an error.
DarkCowherd
--
http://mail.python.org
Hello all,
I have written my first Python application (apart from small test
programs). It's a (distibuted) white board application. I'm going to
assume that there already are a thousand of them, written in Python, but
just in case someone would find it useful:
http://user.it.uu.se/~jada3673/a