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

text editor example #6

Open
JerryFox opened this issue Nov 28, 2023 · 4 comments
Open

text editor example #6

JerryFox opened this issue Nov 28, 2023 · 4 comments

Comments

@JerryFox
Copy link

C:\Users\vysok\python\python-webui\examples\text-editor>python main.py
Traceback (most recent call last):
File "C:\Users\vysok\python\python-webui\examples\text-editor\main.py", line 25, in
main()
File "C:\Users\vysok\python\python-webui\examples\text-editor\main.py", line 16, in main
window.set_root_folder("ui/")
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'window' object has no attribute 'set_root_folder'

Where is the problem???

Thanks!

Jaroslav Vysoký
Czech Republic

@AlbertShown
Copy link
Contributor

The main core library webui (In C) is working fine and stable, but wrappers are still being developed.
To fix this issue just copy webui.py from this repo to PyPi package folder.

Copy
C:\Users\vysok\python\python-webui\PyPI\Package\src\webui\webui.py
To
C:\_PATH_TO_PYTHON_INSTALL_FOLDER_HERE_\Lib\site-packages\webui\webui.py

Thank you @JerryFox for signaling this.

@AlbertShown
Copy link
Contributor

@hassandraga PyPi package needs to be updated.

@JerryFox
Copy link
Author

Thanks! I did it already.

J.

@kvbik
Copy link

kvbik commented Nov 29, 2023

Hey @AlbertShown - instead of copy the webui.py file, it is better practice for local development to do:

pip install -e .

The main trick is to do it from the directory where the setup.py or pyproject.toml is. Which in this case is PyPI/Package/.

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