Trigger UI update after programmatic UI changes

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
drmacro
Veteran
Posts: 8867
Joined: Sun Mar 02, 2014 4:35 pm

Re: Trigger UI update after programmatic UI changes

Post by drmacro »

@chennes
Side question: How does one specify TabBar or Glass as a depend?

Since they don't have a package.xml file, what is their name?
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
chennes
Veteran
Posts: 3880
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Trigger UI update after programmatic UI changes

Post by chennes »

You use the name of their git repo: those two are just "Glass" and "TabBar".
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
chennes
Veteran
Posts: 3880
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Trigger UI update after programmatic UI changes

Post by chennes »

drmacro wrote: Sat Aug 27, 2022 11:54 am So, why would running from an installed version of FC make a difference?
I don't know -- I'll have to see if I can replicate it locally, but I have had some problems with threads on Linux not terminating when requested (which is why that error message is there!). I'm not a fan of QtWebEngine, I wish their were a good alternative, but I haven't found one.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
drmacro
Veteran
Posts: 8867
Joined: Sun Mar 02, 2014 4:35 pm

Re: Trigger UI update after programmatic UI changes

Post by drmacro »

@chennes

Sigh, earlier today it worked with depend set to Lattice2 Workbench, I then changed it to TabBar. It simply ignored that.

Now I get this if I try to install the same PP:

Code: Select all

11:11:01  Traceback (most recent call last):
11:11:01    File "/home/mac/fc-daily-build-occt77/Mod/AddonManager/AddonManager.py", line 1220, in resolve_dependencies
11:11:01      missing = CommandAddonManager.MissingDependencies(repo, self.item_model.repos)
11:11:01    File "/home/mac/fc-daily-build-occt77/Mod/AddonManager/AddonManager.py", line 1057, in __init__
11:11:01      __import__(py_dep)
11:11:01    File "/usr/lib/python3/dist-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
11:11:01      return original_import(name, *args, **kwargs)
11:11:01  ValueError: Empty module name
:(

Edit: false flag. The cfg file in the PP was bad...not sure how.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
drmacro
Veteran
Posts: 8867
Joined: Sun Mar 02, 2014 4:35 pm

Re: Trigger UI update after programmatic UI changes

Post by drmacro »

chennes wrote: Sat Aug 27, 2022 2:55 pm
drmacro wrote: Sat Aug 27, 2022 11:54 am So, why would running from an installed version of FC make a difference?
I don't know -- I'll have to see if I can replicate it locally, but I have had some problems with threads on Linux not terminating when requested (which is why that error message is there!). I'm not a fan of QtWebEngine, I wish their were a good alternative, but I haven't found one.
After figuring out the cfg issue, this is still a thing on the Manjaro box...
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Trigger UI update after programmatic UI changes

Post by adrianinsaval »

isn't the distro and/or machine difference more likely to be the cause rather than installing vs not installing?
drmacro
Veteran
Posts: 8867
Joined: Sun Mar 02, 2014 4:35 pm

Re: Trigger UI update after programmatic UI changes

Post by drmacro »

adrianinsaval wrote: Sun Aug 28, 2022 6:51 pm isn't the distro and/or machine difference more likely to be the cause rather than installing vs not installing?
Not sure what you are referring to.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Post Reply