Skip to content

text editor example #6

Description

@JerryFox

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

Activity

  1. AlbertShown commented on Nov 28, 2023

    @AlbertShown
    Member

    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.

  2. AlbertShown commented on Nov 28, 2023

    @AlbertShown
    Member

    @hassandraga PyPi package needs to be updated.

  3. JerryFox commented on Nov 28, 2023

    @JerryFox
    Author

    Thanks! I did it already.

    J.

  4. kvbik commented on Nov 29, 2023

    @kvbik

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions