Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some GUI packages are missing from poetry config file/bug fix #23

Closed
ivanshilo opened this issue Apr 24, 2023 · 1 comment
Closed

Some GUI packages are missing from poetry config file/bug fix #23

ivanshilo opened this issue Apr 24, 2023 · 1 comment

Comments

@ivanshilo
Copy link

It is not possible to run 'gui_demonstrator.py' after installation since some packages are missing:
Have to call those ones:

  • poetry add qtpy
  • poetry add pyqt5
  • poetry add qimage2ndarray

In addition to that had to fix QtShortCuts.py since slider does not support float values but integers only. Also spinbox type has to processed correctly on setValue (int or float value).

One has to change in class QInputNumber(QInput):

def _doSetValue(self, value):
        v = value
        if self.decimals == 0:
            v = int(value)
        self.spin_box.setValue(v)
        if self.slider is not None:            
            self.slider.setValue(int(value * self.decimal_factor))
@rgerum
Copy link
Owner

rgerum commented Apr 24, 2023

ah yes newer QT versions require the floats cast to ints first. I should fix that.

About the additional dependencies. I am not sure if it would be a good idea to add them not everyone might need them. But I could use an additional group of dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants