gecos-lab / PZero

GNU Affero General Public License v3.0
24 stars 2 forks source link

bug at self.actionImportPC.triggered.connect(self.import_PC) #13

Closed andrea-bistacchi closed 2 years ago

andrea-bistacchi commented 2 years ago

after the last commit I have a bug at this line in project_window.py.

Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm 2020.1.3\plugins\python\helpers\pydev\pydevd.py", line 1491, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "C:\Program Files\JetBrains\PyCharm 2020.1.3\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "D:/_REPOS/PZero/pzero.py", line 7, in project_window = ProjectWindow() File "D:_REPOS\PZero\pzero\project_window.py", line 129, in init self.actionImportPC.triggered.connect(self.import_PC) AttributeError: 'ProjectWindow' object has no attribute 'actionImportPC'``

gbene commented 2 years ago

Fixed. For some reason the action "import Point Cloud" was missing from the project_window.ui file.

andrea-bistacchi commented 2 years ago

Are you syncing on GitHub also the GUI files modified with Qt Designer?

gbene commented 2 years ago

With this fix yes. In one of the very first pushes of the festure_PCDom branch I added the qaction directly in the code without using the qtdesigner so the .UI file was not up to date.

andrea-bistacchi commented 2 years ago

Ok let's keep the Designer file in sync.