pyforms-gui's People
Forkers
vykstorm spirou42 allan-xie torbenfricke kimocoder shalevy1 maple2014 remi-pr enigma0z iory shaman4e shaliulab walidabbassi dll gamecraftcz sanyaade-projectspyforms-gui's Issues
How to package into exe file
I want to package my program into an exe file for others to run, what should I do?
qt.qpa.xcb: could not connect to display
Could you please help to fix this error?
2022-02-28 15:28:52 ip-172-31-93-208 OpenGL.acceleratesupport[101427] INFO No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Aborted (core dumped)
ImportError: PyQt4, PyQt5, PySide or PySide2 are not available for import
On Mac 10.14.4
I installed pip install pyforms-gui
I created the example.py
file
Am trying the ComputerVisionAlgorithm
example
pyforms $ python example.py
Traceback (most recent call last):
File "example.py", line 1, in <module>
from pyforms.basewidget import BaseWidget
File "/usr/local/lib/python2.7/site-packages/pyforms/__init__.py", line 26, in <module>
from pyforms_gui.appmanager import start_app
File "/usr/local/lib/python2.7/site-packages/pyforms_gui/appmanager.py", line 3, in <module>
from pyforms_gui.controls.control_dockwidget import ControlDockWidget
File "/usr/local/lib/python2.7/site-packages/pyforms_gui/controls/control_dockwidget.py", line 4, in <module>
from pyforms_gui.controls.control_emptywidget import ControlEmptyWidget
File "/usr/local/lib/python2.7/site-packages/pyforms_gui/controls/control_emptywidget.py", line 6, in <module>
from AnyQt import _api
File "/usr/local/lib/python2.7/site-packages/AnyQt/_api.py", line 100, in <module>
raise ImportError("PyQt4, PyQt5, PySide or PySide2 are not available for import")
ImportError: PyQt4, PyQt5, PySide or PySide2 are not available for import
In a similar way could you allow the use of showNormal or showMinimzed rather then showMaximized
In a similar way could you allow the use of showNormal or showMinimzed rather then showMaximized
with a setting?
Originally posted by @jjgalvez in #7 (comment)
populating ControlList takes veeeryyyy loooong time
As populating a ControlList with a few thousands of lines, each with a few columns (it works the same with single columns), my UI hangs for some long minutes before getting responsive again.
Here is sample code to reproduce
my_list.value = [[x] for x in range(5000) ]
By Reading QT forums, I went on the following topic about performance issues with QTableWidget.
https://bugreports.qt.io/browse/QTBUG-57848
Is it possible to disable resizecolumn by default instead of enabling it ?
Or at least, use QT's ResizeToContents only upon content insertion complete when mass replacing value ?
Window starts maximized
Ubuntu 16.04
Is there a way to block them from maximizing?
function 'FT_New_Face' not found
Source of issue
After installing via pip install pyforms-gui
(installation was succesfull, no errors across all dependencies) and running example project, I have error:
Traceback (most recent call last):
File "main.py", line 3, in <module>
from pyforms.controls import ControlText
File "C:\Python38\lib\site-packages\pyforms\controls.py", line 7, in <module>
from pyforms_gui.allcontrols import *
File "C:\Python38\lib\site-packages\pyforms_gui\allcontrols.py", line 44, in <module>
from .controls.control_visvis import ControlVisVis
File "C:\Python38\lib\site-packages\pyforms_gui\controls\control_visvis.py", line 12, in <module>
import visvis as vv, numpy as np
File "C:\Python38\lib\site-packages\visvis\__init__.py", line 55, in <module>
from visvis.core import *
File "C:\Python38\lib\site-packages\visvis\core\__init__.py", line 46, in <module>
from visvis.core.axes import AxesContainer, Axes, Legend
File "C:\Python38\lib\site-packages\visvis\core\axes.py", line 27, in <module>
from visvis.text import Label
File "C:\Python38\lib\site-packages\visvis\text\__init__.py", line 88, in <module>
from visvis.text.text_freetype import FreeTypeFontManager
File "C:\Python38\lib\site-packages\visvis\text\text_freetype.py", line 34, in <module>
from visvis.text.freetype import (Face, Vector, Matrix, FT_KERNING_UNFITTED,
File "C:\Python38\lib\site-packages\visvis\text\freetype\__init__.py", line 162, in <module>
FT_New_Face = FT._dll.FT_New_Face
File "C:\Python38\lib\ctypes\__init__.py", line 386, in __getattr__
func = self.__getitem__(name)
File "C:\Python38\lib\ctypes\__init__.py", line 391, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'FT_New_Face' not found
This seems like some low-level dll stuff that I don't understrand, and was unable to find solution.
How to style window
I am able to style the MainWindow. How do I style a Window that has BaseWidget as Constructor?
OpenCV version issue
There is an issue if the user has installed a different version of opencv-python than 3.4.5.20 (same error with pip). The only workaround I've found so far is to modify line 45 from 'opencv-python==3.4.5.20',
to 'opencv-python>=3.4.5.20',
from setup.py.
ControlNumber can't set negative value
Use QListWidgetItem instead of QTableWidgetItem for ControlList
QTableWidgetItem doesn't provide any method to help with an eventual search function, notably the QtWidgets.QListWidgetItem.setHidden
method from QListWidgetItem.
The lack of hiding feature for the different items populating a list makes it hard to implement any kind of filtering system. If you know of a way to hide the table elements based on a string, please do tell me.
Can't seem to get the mainmenu to show for MacOS
Installing PyForms-GUI
I recently came by this lib - it looked promising and wanted to give it a try.
Though upon install the lib, using pip install PyForms-GUI, the installation failed.
[..] Preparing metadata (pyproject.toml) did not run successfully [..]
ControlFilesTree - how to get selected file?
Is there a way to know which file is selected?
opencv-python==3.4.5.0 could not be installed
Hi,
At the setup.py, opencv-python==3.4.5.0 was set, but it could not be installed as it is not exist on the its pypi.
I have tried git clone and update the setup.py to not specify opencv-python version.
It looks fine. Is there any way to avoid this info msg.
[INFO ] OpenGL.acceleratesupport No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
Could you please check this case when you are available ?
Thanks.
how to control size of main window
it always starts at the max size of window
how to application icon?
How do you set the application icon? setWindowIcon does not seem to do anything
ControlDir doesn't have correct label
I have been using ControlFile with success, but it doesn't seem that pyforms has an option to request a folder instead of a file.
I guess this is a feature request, rather than an issue, but I don't know where else to file it.
ControlImage example
I am unable to run the ControlsImage example in pyforms-gui-4\tutorials\Controls4Docs.
The GUI opens but once the open button is pressed the GUI crashes.
Here is the error that I receive:
Traceback (most recent call last):
File "ControlImage.py", line 31, in __open
self._control.value = '/home/ricardo/Desktop/lena_color.png'
File "C:\ProgramData\Anaconda3\lib\site-packages\pyforms_gui\controls\control_image.py", line 73, in value
self._imageWidget.paint([value])
File "C:\ProgramData\Anaconda3\lib\site-packages\pyforms_gui\controls\control_player\AbstractGLWidget.py", line 328, in paint
self.imgHeight, self.imgWidth = frames[0].shape[:2]
AttributeError: 'str' object has no attribute 'shape'
Not getting the complete file path when using the ControlFile widget to save a file
Source of issue
When using the ControlFile widget, the call to the underlying Qt method to get a file path is correct but here:
only the first character of the path is kept. This is because when using the same widget to open a file, a more generic call is made (to be Qt4 and Qt5 compatible I guess) and it is possible to get back a tuple and not just a string.
Potential solution
Possible solutions to this issue could be:
- Test the type of the
value
and treat differently tuples and strings - Check if one is using the widget for opening or saving
Is there an updated doc on how to import CSS Styles?
I am trying to organize a bunch of text fields to look similar to the standard way how address forms are formatted. But I can't seem to find a way to import the css styles.
The examples use the master branch, but I am using v4.
GUI docs Controls descriptions not available
Control descriptions are not available on the GUI docs:
https://pyforms.readthedocs.io/projects/Pyforms-GUI/en/v4/api-reference/controls.html
Control descriptions are populated correctly on the web docs:
https://pyforms.readthedocs.io/projects/Pyforms-WEB/en/v4/api-reference/python/controls.html
Pyforms Tutorial Missing "AddMenuFuntionality"
Hi,
I am just wondering how you made the "AddMenuFuntionality" file, it wasn't mentioned to be made in the tutorial as I am trying to learn and will apply this to my own application afterwards... Just wanted to see the end result, but I get errors because it is missing. Do you have the code for this the "AddMenuFuntionality" file?
Thanks so much! Pyforms is great!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.