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
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.
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
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.
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) -,
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!
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
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
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
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"
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
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
12 matches
Mail list logo