vbonvin / POUET

Programming Observations Usefully at Euler Telescope
GNU General Public License v3.0
1 stars 1 forks source link

Pop-up window for Show Selected Names #52

Closed vbonvin closed 6 years ago

vbonvin commented 6 years ago

The current show selected names buttons print the names of the selected targets in the terminal. It should be a pop-up instead, from which the user can copy the list of names.

kuntzer commented 6 years ago

Done. Sorry @vbonvin I wanted to do this one :)

vbonvin commented 6 years ago

Looks like you forgot to commit something... ;)

FileNotFoundError: [Errno 2] No such file or directory: 'dialogNames.ui'

kuntzer commented 6 years ago

It's in the repo already. That's really weird. Could you try to pull again?

vbonvin commented 6 years ago

Still not there

kuntzer commented 6 years ago

https://github.com/vbonvin/POUET/blob/master/pouet/dialogNames.ui

vbonvin commented 6 years ago

Oh, the files are there but are not found by main.py.

That's probably a path-related issue. Could you make sure that pouet finds them when launching main.py from root?

vbonvin commented 6 years ago

Yep that's that, it works when I move in the pouet subfolder.

Mmmh, so it means the load pop-up has the same issue...I wonder if we could import these files as we do with design_scalable.ui

vbonvin commented 6 years ago

I found a quick fix:

instead of

uic.loadUi("dialogPlots.ui")

use

uic.loadUi(os.path.join(herepath,"dialogPlots.ui"))

with

herepath = os.path.dirname(os.path.abspath(inspect.stack()[0][1]))

Will apply that to the other popups load and close the issue