Is this a wx bug?

2007-10-23 Thread Chris Carlen
Hi: #!/usr/bin/env python """From listing 3.3 in 'wxPython in Action' Demonstrates that something funny happens when you click&hold in the frame, then drag the mouse over the button window. The wx.EVT_ENTER_WINDOW event is missed. The wx.EVT_LEAVE_WINDOW event is NOT missed when you click&h

Entering strings as user input but interpreting as Python input (sort of)

2007-09-17 Thread Chris Carlen
Hi: I'm writing a Python program, a hex line editor, which takes in a line of input from the user such as: >>> cmd = raw_input('-').split() -e 01 02 "abc def" 03 04 >>> cmd ['e', '01', '02', '"abc', 'def"', '03', '04'] Trouble is, I don't want to split the quoted part where the space occurs.

Re: Can a low-level programmer learn OOP?

2007-07-16 Thread Chris Carlen
Hendrik van Rooyen wrote: > "Chris Carlen" wrote: >>Form 2: Use Python and PySerial and TkInter or wxWidgets. >>Pro: Cross-platform goal will likely be achieved fully. Have a >>programmer nearby with extensive experience who can help. >>Con: Must

Re: Can a low-level programmer learn OOP?

2007-07-13 Thread Chris Carlen
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Chris Carlen <[EMAIL PROTECTED]> wrote: >>From what I've read of OOP, I don't get it. > > For that matter, even using OOP a bit with C++ and Perl, I didn't get it > until I learned Python.

Re: Can a low-level programmer learn OOP?

2007-07-13 Thread Chris Carlen
Bruno Desthuilliers wrote: > Chris Carlen a écrit : >[edit] >> Must possibly learn a completely new way of thinking (OOP) > > Not necessarly. While Python is OO all the way down - meaning that > everything you'll work with will be an object (functions included) -,

Re: Can a low-level programmer learn OOP?

2007-07-13 Thread Chris Carlen
Simon Hibbs wrote: > Sorry, here's the tutorial link: > > http://hetland.org/writing/instant-python.html > > > Simon Hibbs Thanks Simon. Actually, that's the tutorial that I've started with. Your comments are encouraging. I'll keep learning. -- Good day!

Re: Can a low-level programmer learn OOP?

2007-07-13 Thread Chris Carlen
Neil Cerutti wrote: > Going back to the stack machine question, and using it as an > example: Assume you design your program as a state machine. > Wouldn't it be easier to implement in a (hypothetical) > state-machine-based programming language than in a procedural > one? I think John was insinuati

Re: Can a low-level programmer learn OOP?

2007-07-13 Thread Chris Carlen
John Nagle wrote: > Chris Carlen wrote:[edit] >> Hence, being a hardware designer rather than a computer scientist, I >> am conditioned to think like a machine. I think this is the main >> reason why OOP has always repelled me. > > Why? When pointers were first

Re: Understanding python functions - Instant Python tutorial

2007-07-13 Thread Chris Carlen
Ben Finney wrote: > Chris Carlen <[EMAIL PROTECTED]> writes: > > def change(some_list): > some_list[1] = 4 > > x = [1,2,3] > change(x) > print x # Prints out [1,4,3] > --- > def nochange(x): > x = 0 > > y = 1 > nochange(y) > print

Re: Understanding python functions - Instant Python tutorial

2007-07-13 Thread Chris Carlen
Gabriel Genellina wrote: > En Thu, 12 Jul 2007 21:51:08 -0300, Chris Carlen > <[EMAIL PROTECTED]> escribió: >> http://hetland.org/writing/instant-python.html >> I don't understand Hetland's terminology though, when he is speaking of >> "binding"

Can a low-level programmer learn OOP?

2007-07-13 Thread Chris Carlen
Hi: From what I've read of OOP, I don't get it. I have also found some articles profoundly critical of OOP. I tend to relate to these articles. However, those articles were no more objective than the descriptions of OOP I've read in making a case. Ie., what objective data/studies/research

Understanding python functions - Instant Python tutorial

2007-07-12 Thread Chris Carlen
Hi: I have begun learning Python by experimenting with the code snippets here: http://hetland.org/writing/instant-python.html In the section on functions, Magnus Lie Hetland writes: For those of you who understand it: When you