Code Monkey home page Code Monkey logo

Comments (4)

jooste avatar jooste commented on August 22, 2024

You're right, thanks. check.py hasn't changed since we added the new gui (PyQT + OpenGL)
I've added checks for the two to check.py

from bluesky.

jooste avatar jooste commented on August 22, 2024

Can you tell me a bit more about why you had to reinstall PyQt4? And are you using PyQt4 and PyQt5 simultaneously?

Thanks!

from bluesky.

espinielli avatar espinielli commented on August 22, 2024

after I installed PyQt5 I got the following (or at least this is the earliest I find in my terminal):

$ python BlueSky.py
Reading config from settings.cfg
Using Qt5 for windows and widgets
Reading waypoints.dat from global
     74160 waypoints read.
Reading airports.dat from global
     14480 airports read.
Reading fir subfolder 36  FIRS read.
QGLWidget initialized for OpenGL version 3.3
Initializing multi-threaded simulation
Traceback (most recent call last):
  File "c:\repos\bluesky\bluesky\ui\qtgl\gui.py", line 330, in notify
    self.radarwidget.previewpoly(None)
  File "c:\repos\bluesky\bluesky\ui\qtgl\radarwidget.py", line 564, in previewpoly
    self.polyprev.set_vertex_count(0)
AttributeError: 'RadarWidget' object has no attribute 'polyprev'
Stopping Threads
BlueSky normal end.

Then after installing PyQt4 and re-running the error disappeared...
I do not know how much reproducible this is...maybe it can be proved with a clean machine.
HTH

from bluesky.

jooste avatar jooste commented on August 22, 2024

Ok, what happened there is that the radarwidget is getting mouse events before it is initialized. This might be a machine-specific thing because it never happened on the machines I've tested it on (both Qt4 and Qt5). I've patched the BlueSky gui event handler to check if radarwidget is initialized before sending it such events. This should (hopefully) fix your bug with Qt5.

from bluesky.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.