[問題] 新增checkbox的問題

看板Python作者 (逢甲阿法)時間12年前 (2013/05/30 16:46), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
大家好 我現在正在嘗試在main window上面新增一個checkbox 我在我的code裡面 寫了這樣子的一個敘述句 他的object name我給他就叫做 checkbox from ui_MainWindow import Ui_MainWindow if Ui_MainWindow.checkbox.ischecked(): print "You select the item" else: print "Please select item" 可是他會一直給我 AttributeError: 'Ui_MainWindow' object has no attribute 'checkbox' 這個錯誤 請問 要怎麼修正這個錯誤呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.63.202
文章代碼(AID): #1Hfn7rPw (Python)
討論串 (同標題文章)
文章代碼(AID): #1Hfn7rPw (Python)