I really hate to bother everyone with such a simple
problem - so my apologies up front.
I'm starting to learn wxPython and I went to this URL
to start learning:
I can't get even the first script to run and display a window
(I'm using 2.6.1 of wxPython on a CentOS 4.1 machine).
I can run the examples from the OSCon 2004 beginners
presentation, but not this one. All I get is a set of cross-hairs
(the cursor changes to a set of cross-hairs) and then nothing.
Is the beginners section of wiki up to date? Or did I screw
something up?
I really hate to bother everyone with such a simple
problem - so my apologies up front.
I'm starting to learn wxPython and I went to this URL
to start learning:
I can't get even the first script to run and display a window
(I'm using 2.6.1 of wxPython on a CentOS 4.1 machine).
I can run the examples from the OSCon 2004 beginners
presentation, but not this one. All I get is a set of cross-hairs
(the cursor changes to a set of cross-hairs) and then nothing.
Is the beginners section of wiki up to date? Or did I screw
something up?
Please post the code you are trying to run. Perhaps you did something wrong with the copy/paste from the wiki, and one of us can spot it.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I really hate to bother everyone with such a simple
problem - so my apologies up front.
I'm starting to learn wxPython and I went to this URL
to start learning:
I can't get even the first script to run and display a window
(I'm using 2.6.1 of wxPython on a CentOS 4.1 machine).
I can run the examples from the OSCon 2004 beginners
presentation, but not this one. All I get is a set of cross-hairs
(the cursor changes to a set of cross-hairs) and then nothing.
Is the beginners section of wiki up to date? Or did I screw
something up?
Please post the code you are trying to run. Perhaps you did something wrong with the copy/paste from the wiki, and one of us can spot it.
Sorry, I should have done that in the first place.
I really hate to bother everyone with such a simple
problem - so my apologies up front.
I'm starting to learn wxPython and I went to this URL
to start learning:
I can't get even the first script to run and display a window
(I'm using 2.6.1 of wxPython on a CentOS 4.1 machine).
I can run the examples from the OSCon 2004 beginners
presentation, but not this one. All I get is a set of cross-hairs
(the cursor changes to a set of cross-hairs) and then nothing.
Is the beginners section of wiki up to date? Or did I screw
something up?
Please post the code you are trying to run. Perhaps you did something wrong with the copy/paste from the wiki, and one of us can spot it.
Sorry, I should have done that in the first place.
Well, there's not much that can go wrong with that one, and it does work here. Do you get any messages printed to the console where you run the script from?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Well, there's not much that can go wrong with that one, and it does work here. Do you get any messages printed to the console where you run the script from?
Well, the cursor changes to cross-hairs. So I assume it's looking
for input, so I click a couple of times and I get this:
./new_test1.py: line 4: syntax error near unexpected token `('
./new_test1.py: line 4: `app = wx.PySimpleApp()'
eg - 'python new_test1.py' from the command line? '#!/usr/bin/python'
in the first line of the script? Or are you using IDLE?
···
On 15/02/06, Jeffrey B. Layton <laytonjb@charter.net> wrote:
>> import wx
>> app = wx.PySimpleApp()
>> frame = wx.Frame(None, -1, "Hello World")
>> frame.Show(1)
>> app.MainLoop()
>
>
Well, the cursor changes to cross-hairs. So I assume it's looking
for input, so I click a couple of times and I get this:
./new_test1.py: line 4: syntax error near unexpected token `('
./new_test1.py: line 4: `app = wx.PySimpleApp()'