nngogol / pysimpleguidesigner Goto Github PK
View Code? Open in Web Editor NEWDesinger for PySimpleGUI
License: GNU General Public License v2.0
Desinger for PySimpleGUI
License: GNU General Public License v2.0
It appears that the manifest is missing at least one file necessary to build
from the sdist for version 0.1.4.6. You're in good company, about 5% of other
projects updated in the last year are also missing files.
+ /tmp/venv/bin/pip3 wheel --no-binary pysimpleguidesigner -w /tmp/ext pysimpleguidesigner==0.1.4.6
Looking in indexes: http://10.10.0.139:9191/root/pypi/+simple/
Collecting pysimpleguidesigner==0.1.4.6
Downloading http://10.10.0.139:9191/root/pypi/%2Bf/12d/bc5a9309acccc/PySimpleGUIDesigner-0.1.4.6.tar.gz (18 kB)
ERROR: Command errored out with exit status 1:
command: /tmp/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-ct7k49qt/pysimpleguidesigner/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-ct7k49qt/pysimpleguidesigner/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-wheel-ct7k49qt/pysimpleguidesigner/pip-egg-info
cwd: /tmp/pip-wheel-ct7k49qt/pysimpleguidesigner/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-wheel-ct7k49qt/pysimpleguidesigner/setup.py", line 17, in <module>
with open(readmefile, "r", encoding='utf-8') as ff:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-wheel-ct7k49qt/pysimpleguidesigner/PySimpleGUIDesigner/README.md'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I followed your youtube tutorial (thank you btw) and downloaded qt designer. I made two grid layouts with pushbuttons, list widgets, tab widgets and a graphics view and put both of them in a vertical layout. Now I open PySimpleGUIDesigner, select my .ui file, select verticalLayout from the dropdown and press convert. PySimpleGUIDesigner crashes and on the command line I read:
Traceback (most recent call last):
File "/home/faberf/anaconda3/envs/general/bin/PySimpleGUIDesigner", line 8, in
sys.exit(cli())
File "/home/faberf/anaconda3/envs/general/lib/python3.8/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/home/faberf/anaconda3/envs/general/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/faberf/anaconda3/envs/general/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/faberf/anaconda3/envs/general/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/faberf/anaconda3/envs/general/lib/python3.8/site-packages/PySimpleGUIDesigner/real_src_here.py", line 697, in cli
run_gui()
File "/home/faberf/anaconda3/envs/general/lib/python3.8/site-packages/PySimpleGUIDesigner/real_src_here.py", line 602, in run_gui
ui = just_compile(values)
File "/home/faberf/anaconda3/envs/general/lib/python3.8/site-packages/PySimpleGUIDesigner/real_src_here.py", line 142, in just_compile
raise Exception(f'error, no obj_name="{OBJ_NAME}" found')
Exception: error, no obj_name="verticalLayout" found
I am running python 3.8.5, PySimpleGUIDesigner 0.1.4.7. This issue persists even when I select other object names.
Running into the following issue when launching PySimpleGUIDesigner I just installed PySide2 and PySimpleGUIDesigner using PIP.
U:\>PySimpleGUIDesigner
Traceback (most recent call last):
File "c:\users\*******\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\*******\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\*******\AppData\Local\Programs\Python\Python37-32\Scripts\PySimpleGUIDesigner.exe\__main__.py", line 4, in <module>
File "c:\users\*******\appdata\local\programs\python\python37-32\lib\site-packages\PySimpleGUIDesigner\main.py", line 5, in <module>
import click
ModuleNotFoundError: No module named 'click'
I got thise when I type PySimpleGUIDesigner
New to PySimpleGUI, can anyone tell me what to do?
Traceback (most recent call last):
File "d:\python354\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "d:\python354\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "D:\Python354\Scripts\PySimpleGUIDesigner.exe_main.py", line 4, in
File "d:\python354\lib\site-packages\PySimpleGUIDesigner\main.py", line 5, in
from .transpiler2 import *
File "d:\python354\lib\site-packages\PySimpleGUIDesigner\transpiler2.py", line 35
return f'[{x}]'
^
SyntaxError: invalid syntax
Hi @nngogol!
Love your nose!
I wanted to get your attention on an enhancement request I've put in for PySimpleGUI: PySimpleGUI/PySimpleGUI#3398
Mike thought you and I should discuss. I am available on any channel.
best!
Gil
Just installed it via pip in a venv and ran PySimpleGUIDesigner
and it throws the exeption above.
I've created a very basic GUI in Qt Designer, code attached at the bottom (.ui)
Then I've opened PySimpleGUIDesigner and loaded my file.
Picked "groupBox" as target object name, click convert.
I get: error, no obj_name="groupBox" found.
I'm running PySimpleGuiDesigner in python3 on MacOSX Catalina.
Best, awesome project btw.
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>689</width>
<height>520</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>40</x>
<y>30</y>
<width>287</width>
<height>144</height>
</rect>
</property>
<property name="title">
<string>GroupBox</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Hello darkness my old friend</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>hope</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="lineEdit"/>
</item>
<item row="2" column="0">
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>hello</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="lineEdit_2"/>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>689</width>
<height>22</height>
</rect>
</property>
<widget class="QMenu" name="menuTitle">
<property name="title">
<string>Title</string>
</property>
</widget>
<addaction name="menuTitle"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>
I installed with pip and trying to run from cmd in Win7. I get same error all the time. Tried uninstall and install again, didnt worked. Tried to install from source code and run, but still same error.
I didnt find to solution.Can you help?
Python version: 3.7.2
C:\Users\MYNAME>PySimpleGUIDesigner PySide2/__init__.py: Unable to import shiboken2 from C:\Users\MYNAME\AppData\ Local\Programs\Python\Python37\Scripts\PySimpleGUIDesigner.exe, C:\Users\{usrNam e}\AppData\Local\Programs\Python\Python37-32\Lib", c:\users\MYNAME\appdata\lo cal\programs\python\python37\python37.zip, c:\users\MYNAME\appdata\local\prog rams\python\python37\DLLs, c:\users\MYNAME\appdata\local\programs\python\pyth on37\lib, c:\users\MYNAME\appdata\local\programs\python\python37, c:\users\ce lil can\appdata\local\programs\python\python37\lib\site-packages Traceback (most recent call last): File "c:\users\MYNAME\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\users\MYNAME\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\MYNAME\AppData\Local\Programs\Python\Python37\Scripts\PySimp leGUIDesigner.exe\__main__.py", line 5, in <module> File "c:\users\MYNAME\appdata\local\programs\python\python37\lib\site-packa ges\PySimpleGUIDesigner\main.py", line 5, in <module> from .transpiler2 import * File "c:\users\MYNAME\appdata\local\programs\python\python37\lib\site-packa ges\PySimpleGUIDesigner\transpiler2.py", line 1, in <module> from PySide2 import QtCore, QtGui, QtWidgets File "c:\users\MYNAME\appdata\local\programs\python\python37\lib\site-packa ges\PySide2\__init__.py", line 88, in <module> _setupQtDirectories() File "c:\users\MYNAME\appdata\local\programs\python\python37\lib\site-packa ges\PySide2\__init__.py", line 54, in _setupQtDirectories import shiboken2 File "c:\users\MYNAME\appdata\local\programs\python\python37\lib\site-packa ges\shiboken2\__init__.py", line 27, in <module> from .shiboken2 import * ImportError: DLL load failed: Belirtilen modül bulunamadı.
I use WinPython 3.8 64bit with PyQt5. So I edit the installed files of PySimpleGUIDesigner to change PySide to PyQt5. So the GUI starts, but when I try to convert the example .ui file:
D:\newInstalled\WPy64-3800\scripts>PySimpleGUIDesigner
Traceback (most recent call last):
File "D:\newInstalled\WPy64-3800\python-3.8.0.amd64\lib\runpy.py", line 192, i
n _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\newInstalled\WPy64-3800\python-3.8.0.amd64\lib\runpy.py", line 85, in
run_code
exec(code, run_globals)
File "D:\newInstalled\WPy64-3800\python-3.8.0.amd64\Scripts\PySimpleGUIDesigne
r.exe_main.py", line 7, in
File "D:\newInstalled\WPy64-3800\python-3.8.0.amd64\lib\site-packages\click\co
re.py", line 764, in call
return self.main(*args, **kwargs)
File "D:\newInstalled\WPy64-3800\python-3.8.0.amd64\lib\site-packages\click\co
re.py", line 717, in main
rv = self.invoke(ctx)
File "D:\newInstalled\WPy64-3800\python-3.8.0.amd64\lib\site-packages\click\co
re.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\newInstalled\WPy64-3800\python-3.8.0.amd64\lib\site-packages\click\co
re.py", line 555, in invoke
return callback(*args, **kwargs)
File "D:\newInstalled\WPy64-3800\python-3.8.0.amd64\lib\site-packages\PySimple
GUIDesigner\main.py", line 602, in cli
run_gui()
File "D:\newInstalled\WPy64-3800\python-3.8.0.amd64\lib\site-packages\PySimple
GUIDesigner\main.py", line 508, in run_gui
ui = just_compile(values)
File "D:\newInstalled\WPy64-3800\python-3.8.0.amd64\lib\site-packages\PySimple
GUIDesigner\main.py", line 149, in just_compile
raise Exception(f'error, no obj_name="{OBJ_NAME}" found')
Exception: error, no obj_name="g2" found
The D:\newInstalled\WPy64-3800 is the WinPython folder.
I try to use PySimpleGUIDesigner with PyQt5 (no PySide 2), but the DLL can't be imported, because the program search for PySide.
Is it possible to use PySimpleGUIDesigner with Python + PyQt5?
can not run PySimpleGUIDesigner, error info:
File "d:\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\anaconda3\Scripts\PySimpleGUIDesigner.exe\__main__.py", line 4, in <module>
File "d:\anaconda3\lib\site-packages\PySimpleGUIDesigner\main.py", line 5, in <module>
from .transpiler2 import *
File "d:\anaconda3\lib\site-packages\PySimpleGUIDesigner\transpiler2.py", line 1, in <module>
from PySide2 import QtCore, QtGui, QtWidgets
File "d:\anaconda3\lib\site-packages\PySide2\__init__.py", line 107, in <module>
_setupQtDirectories()
File "d:\anaconda3\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories
import shiboken2
File "d:\anaconda3\lib\site-packages\shiboken2\__init__.py", line 30, in <module>
_init_pyside_extension()
NameError: name '_init_pyside_extension' is not defined
Please, if it is not so difficult, make Designer to work also with PySide6 as with PySide2.
hello,
i tried to run from source i have got this error
$ python main.py
Traceback (most recent call last):
File "main.py", line 1, in <module>
from .boilerplate_psg import boilerplate_
ModuleNotFoundError: No module named '__main__.boilerplate_psg'; '__main__' is not a package
Both main_for_devel.py and PySimpleGUIDesigner throw the exception above
full error
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/user/Library/Python/3.8/lib/python/site-packages/PySimpleGUIDesigner/__main__.py", line 4, in <module>
cli()
File "/Users/user/Library/Python/3.8/lib/python/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/Users/user/Library/Python/3.8/lib/python/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Users/user/Library/Python/3.8/lib/python/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/user/Library/Python/3.8/lib/python/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/user/Library/Python/3.8/lib/python/site-packages/PySimpleGUIDesigner/real_src_here.py", line 697, in cli
run_gui()
File "/Users/user/Library/Python/3.8/lib/python/site-packages/PySimpleGUIDesigner/real_src_here.py", line 602, in run_gui
ui = just_compile(values)
File "/Users/user/Library/Python/3.8/lib/python/site-packages/PySimpleGUIDesigner/real_src_here.py", line 142, in just_compile
raise Exception(f'error, no obj_name="{OBJ_NAME}" found')
Exception: error, no obj_name="MainWindow" found
C:\Users\zsp>pysimpleguidesigner
Traceback (most recent call last):
File "c:\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\anaconda3\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Anaconda3\Scripts\PySimpleGUIDesigner.exe_main.py", line 4, in
File "c:\anaconda3\lib\site-packages\PySimpleGUIDesigner\main.py", line 13, in
from .transpiler2 import *
File "c:\anaconda3\lib\site-packages\PySimpleGUIDesigner\transpiler2.py", line 1, in
from PySide2 import QtCore, QtGui, QtWidgets
ModuleNotFoundError: No module named 'PySide2'
I changed all "PySide2" to "PyQt5" in "c:\anaconda3\lib\site-packages\PySimpleGUIDesigner\transpiler2.py" ,then the program could run.
I am getting this error after pressing the "convert" button.
This even happens with the untitled.ui and test.ui files you have provided.
I really don't understand what is going wrong.
These are my software versions:
Name: PySimpleGUIDesigner
Version: 0.1.4.7
Name: click
Version: 8.0.1
Name: PySide2
Version: 5.15.2
Python 3.8.5
Qt Designer 5.11.1
I am happy to provide further information as you require.
Hi! First of all thanks for your tool, is very useful for my test application at work (we have different tests on agriculture motor) and to understand better how PySimpleGui works.
I installed the version from pip PySimpleGUIDesigner 0.0.4.
Then I download the sources and try with ui file "C:\PySimpleGUIDesigner-master\examples_of_ui\untitled.ui"
If I open "untiled.ui" with Qt Creator (4.7.1) I see the "els" GroupBox with a series of element, but when I make "Compile" in PySimpleGUIDesigner, "error, no obj_name="els"" found" is notified.
Have you got some tips/workaround? Thanks in advance.
I did a pip install PySimpleGUIDesigner, which returned
Installing collected packages: shiboken2, PySide2, PySimpleGUIDesigner
Successfully installed PySide2-5.12.3 PySimpleGUIDesigner-0.0.2 shiboken2-5.12.3
Then on a new command line:
mbusch@Mikes-MacBook-Pro ~ $ PySimpleGUIDesigner
Traceback (most recent call last):
File "/Users/mbusch/anaconda3/bin/PySimpleGUIDesigner", line 7, in <module>
from PySimpleGUIDesigner.main import cli
File "/Users/mbusch/anaconda3/lib/python3.7/site-packages/PySimpleGUIDesigner/main.py", line 1, in <module>
from boilerplate_psg import boilerplate_
ModuleNotFoundError: No module named 'boilerplate_psg'
mbusch@Mikes-MacBook-Pro ~ $
Did I miss a step?
Hello!
After installation and trying to start PySimpleGUIDesigner I get an error:
TypeError: init() got an unexpected keyword argument 'metadata'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.