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

New Bug and its Fix related to float conversion in python 3.10 and PYQt5 in UBUNTUbuntu 22.04 #244

Open
mcassiani opened this issue Oct 23, 2022 · 3 comments

Comments

@mcassiani
Copy link

Describe the bug

Gis4WRF will not open windows (e.g. configuration files ) because there is no more automatic conversion between float and integer.
The fix is:
Ddit file "dialog_nml_editor.py", search for it in your GIS4WRF (QGIS) installation directory for example
~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/plugin/ui/

replace lines 32 and 48 with

    self.resize(int(w * 0.7), int(h * 0.6))       

    schema_browser.setMaximumWidth(int(self.width() * 0.3))

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

System Information (please complete the following information):

  • OS: [e.g. Windows 10]
  • QGIS: [e.g. 3.10.0]

Additional context
Add any other context about the problem here.

@mjroth
Copy link
Contributor

mjroth commented Nov 10, 2022

Also applicable to plug/ui/dialog_custom_met_dataset.py with the same fix pattern:

self.setMinimumSize(int(w * 0.25), int(h * 0.35))

@letmaik
Copy link
Contributor

letmaik commented Nov 10, 2022

PR please :)

@mjroth
Copy link
Contributor

mjroth commented Dec 1, 2022

Done :)

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

3 participants