Announcement

Collapse
No announcement yet.

Need help with Pyside

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need help with Pyside

    Hello, I have been following this example of a PySide application here: http://developer.qt.nokia.com/wiki/P..._Simple_Dialog

    I am new to PySide and Python but I think I understand most of the example. My problem is running the program gives me this error:

    Code:
    File "DialogExample.py", line 39, in Form
        form = Form()
    NameError: name 'Form' is not defined
    I'm thinking it's some kind of PySide installation error...

    I've been a long time Kubuntu fan (since I used Linux during Ubuntu's 7.10 release) and would appreciate some help on the matter.

    #2
    Going to need more info then that (posting the whole code would help) as Form should have been defined in the line:
    Code:
    [LEFT][COLOR=#D20020][FONT=Consolas][B]class[/B][/FONT][/COLOR][COLOR=#000000][FONT=Consolas] Form[/FONT][/COLOR][COLOR=#363534][FONT=Consolas]([/FONT][/COLOR][URL="http://developer.qt.nokia.com/doc/QDialog.html"][B]QDialog[/B][COLOR=#363534][FONT=Consolas])[/FONT][/COLOR][COLOR=#363534][FONT=Consolas]:[/FONT][/COLOR][/URL][/LEFT]

    And just so you know, the error has nothing to do with pyside, its just complaining that it cannot find the Form class (which is defined on the above line in the example code). If there was a problem with pyside then you would likely get an error on the import statements.
    Last edited by james147; Feb 04, 2012, 07:23 PM.

    Comment


      #3
      Originally posted by james147 View Post
      Going to need more info then that (posting the whole code would help) as Form should have been defined in the line:
      Code:
      [LEFT][COLOR=#D20020][FONT=Consolas][B]class[/B][/FONT][/COLOR][COLOR=#000000][FONT=Consolas] Form[/FONT][/COLOR][COLOR=#363534][FONT=Consolas]([/FONT][/COLOR][URL="http://developer.qt.nokia.com/doc/QDialog.html"][B]QDialog[/B][COLOR=#363534][FONT=Consolas])[/FONT][/COLOR][COLOR=#363534][FONT=Consolas]:[/FONT][/COLOR][/URL][/LEFT]

      And just so you know, the error has nothing to do with pyside, its just complaining that it cannot find the Form class (which is defined on the above line in the example code). If there was a problem with pyside then you would likely get an error on the import statements.
      Your right, it was an error on my part! I typed something wrong (I found out by just copying and pasting the whole thing). Thanks for the help.

      Comment

      Working...
      X