GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — text editor example · Issue #6 · webui-dev/python-webui

text editor example #6

New issue
Copy link
New issue
Copy link
Open
Open
text editor example#6
Copy link

Description

@JerryFox
JerryFox
opened on Nov 28, 2023
Issue body actions

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
    AlbertShown
    on Nov 28, 2023
    Member
    More actions

    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
    AlbertShown
    on Nov 28, 2023
    Member
    More actions

    @hassandraga PyPi package needs to be updated.

  3. JerryFox commented on Nov 28, 2023

    @JerryFox
    JerryFox
    on Nov 28, 2023
    Author
    More actions

    Thanks! I did it already.

    J.

    Reacted by Showns
  4. kvbik commented on Nov 29, 2023

    @kvbik
    kvbik
    on Nov 29, 2023
    More actions

    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/.

    Reacted by Hassan DRAGA
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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.