Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

At first I thought it was something I had done, but I added a print("initing") to MyApp's __init__ method in widgets_overview_app.py and sure enough:

$ python widgets_overview_app.py 
remi.server      INFO     Started httpserver http://0.0.0.0:8081/
initing
remi.request     INFO     built UI (path=/)
remi.gui         DEBUG    dropdown selected item with value DropDownItem 0
remi.gui         DEBUG    dropdown selected item with value DropDownItem 1
remi.gui         DEBUG    dropdown selected item with value DropDownItem 0
remi.request     DEBUG    get: /
127.0.0.1 - - [04/Mar/2025 08:11:01] "GET / HTTP/1.1" 200 -
initing
remi.request     DEBUG    get: /res:style.css
initing
[...snip...]
remi.server.ws   DEBUG    send_message: 3... -> ('127.0.0.1', 50060)
remi.server.ws   DEBUG    on_message: callback
remi.server.ws   DEBUG    send_message: 1140264874... -> ('127.0.0.1', 50060)
remi.server.ws   DEBUG    send_message: 1140264874... -> ('127.0.0.1', 50060)
remi.server.ws   DEBUG    send_message: 1140264874... -> ('127.0.0.1', 50060)
remi.server.ws   DEBUG    send_message: 1140264874... -> ('127.0.0.1', 50060)
remi.server.ws   DEBUG    send_message: 1140264874... -> ('127.0.0.1', 50060)
initing
remi.server.ws   DEBUG    send_message: 1140264874... -> ('127.0.0.1', 50060)
remi.server.ws   DEBUG    send_message: 1140264874... -> ('127.0.0.1', 50060)

I have yet to detect a rhyme or reason to it, but it causes serious problems in my program, which displays an image, which means it reloads it every time the the app restarts, which means associated data (dimensions, saved parameters, etc.) get reloaded, and that's breaking things left and right.

Why does this happen, and is there a way to prevent it?

You must be logged in to vote

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.