Results 1 to 6 of 6

Thread: radiobutton output file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Posts
    29
    Thanks
    8
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default radiobutton output file

    I created a form with Qt which has 2 radio buttons and a push button
    button 1 has label cd
    button 2 has label dvd
    I want the user to choose one of the radio buttons and click the button which will write the text (cd or dvd) into my console when I run the program.
    I managed to do this for a listbox:

    listitem = str(self.lB_List.currentText())
    if listitem == "hey":
    print "hey"
    elif listitem == "bye":
    print "bye"
    elif listitem == "ciao":
    print "ciao"

    but how can i do this for a radiogroup? I've searched the forum but can't find a clear answer.

    Please help, thanks

    -NITRILES-
    Last edited by nitriles; 18th September 2007 at 14:33.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.