How is it possible to use the py5 tools from library inside a PyQt5 Canvas of a simulation project?
For example, using the py5 sketch as a PyQt5 canvas?
Thank you very much!
Related
I've made a simple PyQt5 GUI and would like to embed a visualization inside of it. The visualization would be that of CSV data, so nothing too hard. I was wondering if anyone had any suggestions for python visualization libraries that could be embedded inside of a PyQt5 GUI easily?
On a recent project, I've been using PyQt5 designer to make a GUI for a visualization using vpython. As of right now, the vpython visualization is separate from gui and I was wondering if there was a way to get the visualization inside of a QWidget?
Please note that my vpython visualization is currently rendering inside of a local server in my browser
I have an image editor created in tkinter. However, I would add a floating widgets that exist in PyQt. Is there any way to run integrated tkinter with PyQt?
I make a workaround that solved the problem. I used python subprocess for call the PyQT instance and the option QtCore.Qt.WindowStaysOnTopHint for app running on top of tkinter. It´s work.
but the best solution is to create a thread in python and call PyQt in this thread. In this case it is possible to pass an instance of tk for PyQt and make communication between the two. It´s work too. It´s fine.
No, there is no way to combine widgets from PyQt and Tkinter in a single app. At least, not without resorting to running each toolkit in a separate thread or process. You can't embed the widgets of one into the widgets of the other.
I'm developing a program in python with a gui in pyqt4.
Now i have some porblem with the design of my buttons.
They have some style like windows 98 and i don't like that.
I have change my theme of my raspberry but nothing changed in my python application.
The theme changed my raspberry but not my application.
I use LXDE on my raspberry.
Do have anybody some solution?
Thanks,
You can change style of the Qt Application using one of the built in styles from Qt, for example you can use:
app.setStyle('plastique')
There are QWindowsStyle, QPlastiqueStyle, QCleanlooksStyle, QGtkStyle, QMotifStyle, QCDEStyle...
or you can use QSS (Qt Style Sheets) to theme your application, docs are here: http://qt-project.org/doc/qt-4.8/stylesheet.html
I have a PyGTK application, and it works fine in Gnome, but under Unity (ubuntu 10.10+) the global menu bar doesn't work - the menus are not displayed in the application window or the top bar. Is there a way to force the menu to either skip the global menu bar or display in it?
Edit:
Minimal sample added.
#! /usr/bin/python
import GUI
from GUI import Window
app = GUI.Application()
window = Window()
window.show()
app.run()
I had similar problems with simple programs created using pygtk. I believe the situation is:
pygtk works with gtk2.x
Unity uses gtk3
pygtk does not work with gtk3
python-gobject is the gtk3 equivalent of pygtk
You have an extra layer of complexity since you're using pyGUI. Most likely, pyGUI uses pygtk, which will not work with GTK3 / Unity. You can either persuade the people at pyGUI to release a GTK3-compatible version, or re-write your app from scratch using python-gobject.