why msvcrt.printf show the first char only?

2011-10-12 Thread install...@189.cn
from ctypes import *
msvcrt = cdll.msvcrt
message_string = "Hello world!\n"
print(msvcrt.printf("Testing: %s", message_string))

when running in eclipse, the result is:
1
T

when running in IDLE, then result is:
1

why is that?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: how to change the order of a button, static text or other components

2011-10-20 Thread install...@189.cn
On 10月21日, 上午9时26分, Chris Rebert  wrote:
> On Thu, Oct 20, 2011 at 6:08 PM, install...@189.cn  wrote:
> > what i want to do is,when i press a button, i change the order of
> > selected components,how to do this?
>
> Which GUI toolkit are you using?
>
> Cheers,
> Chris

wxpython.
thx so much.
-- 
http://mail.python.org/mailman/listinfo/python-list