Re: different behavior from idle/pycharm and shell

2014-10-27 Thread kiuhnm03
On Monday, October 27, 2014 11:55:44 PM UTC+1, MRAB wrote: > On 2014-10-27 22:38, kiuhnm wrote: > > Consider this code: > > > > --- > > from ctypes import * > > > > user32 = windll.user32 > > user32.MessageBoxA(0, 'ok', 'ok', 0) > > --- > > > > If I run it in idle or from pycharm, the messagebox sh

Re: different behavior from idle/pycharm and shell

2014-10-27 Thread MRAB
On 2014-10-27 22:38, kiuhn...@yahoo.it wrote: Consider this code: --- from ctypes import * user32 = windll.user32 user32.MessageBoxA(0, 'ok', 'ok', 0) --- If I run it in idle or from pycharm, the messagebox shows 'o' instead of 'ok', but if I run it from shell, it shows 'ok' like it should. T

Re: different behavior from idle/pycharm and shell

2014-10-27 Thread sohcahtoa82
On Monday, October 27, 2014 3:38:31 PM UTC-7, kiuh...@yahoo.it wrote: > Consider this code: > > --- > from ctypes import * > > user32 = windll.user32 > user32.MessageBoxA(0, 'ok', 'ok', 0) > --- > > If I run it in idle or from pycharm, the messagebox shows 'o' instead of > 'ok', but if I run it