PyQ5t: load Qt Designer into Python script (loadUiType): how to check error cause? -


i design gui in qt designer, load ui-file in puthon3 script loaduitype method:

class main(qmainwindow, uic.loaduitype("adc_main_form.ui")[0]): def __init__(self):     super(main, self).__init__()     self.setupui(self) 

all works fine. make little revolution in form design , includes lot of renaming. take ui-file of qt designer (xml file) , edit in text editor. maybe make typo mistakes. message during start of python script, on line self.setupui(self):

file "string", line 671, in setupui

typeerror: argument 1 has unexpected type 'qradiobutton'

so, goes wrong in process of importing xml file. error type tells me not enough find error.

i double check qradiobutton widgets. no idea.

i open ui designer - opens without error messages.

i convert ui py (pyiuc5) - no errors.

the .ui file here.

what can way find error in such closed process setupui?

in .ui file widgets have same name main window's slots. subclass main window, both widgets , slots in same namespace, command self.zero_fix = qtwidgets.qradiobutton(self.frame_4) in compiled .ui file overwrite slot zero_fix()


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -