Glass
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- dcapeletti
- Posts: 504
- Joined: Wed Jul 23, 2014 2:27 pm
Re: Glass
Good. How do I activate it?
In the python terminal I run:
If I run this on a terminal using python:
But in the python console of freecad I have '4.8.6' so Glass will never load. How can I update it?
Thanks
In the python terminal I run:
Code: Select all
>>> from PySide import QtCore
>>> QtCore.qVersion()
'4.8.6'
Code: Select all
>>> from PyQt5 import QtCore
>>> QtCore.qVersion()
'5.7.1'
Thanks
- OficineRobotica
- Posts: 433
- Joined: Thu Feb 21, 2019 8:17 am
- Contact:
Re: Glass
Wow...i'vd been waiting for something like this for a long time. Thank you for your work.
I have a problem tough when activating it.
Also , if i can make a suggestion it would be so useful if we could make an arrangement of the toolboxes something like this:
You man, deserve a beer.
OS: Ubuntu 18.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15860 (Git)
Build type: Release
Branch: master
Hash: 3b708c7f84b0425076b520e1d95627b20fd75fe0
Python version: 2.7.15+
Qt version: 5.11.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)
I have a problem tough when activating it.
Also , if i can make a suggestion it would be so useful if we could make an arrangement of the toolboxes something like this:
You man, deserve a beer.
OS: Ubuntu 18.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15860 (Git)
Build type: Release
Branch: master
Hash: 3b708c7f84b0425076b520e1d95627b20fd75fe0
Python version: 2.7.15+
Qt version: 5.11.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)
Check out my Youtube channel at: https://www.youtube.com/@OficineRobotica
- OficineRobotica
- Posts: 433
- Joined: Thu Feb 21, 2019 8:17 am
- Contact:
Re: Glass
Yes ...my bad. I tried the appimage version and it works as intended.
Check out my Youtube channel at: https://www.youtube.com/@OficineRobotica
- dcapeletti
- Posts: 504
- Joined: Wed Jul 23, 2014 2:27 pm
Re: Glass
It worksOficineRobotica wrote: ↑Sun Feb 24, 2019 5:32 pm Yes ...my bad. I tried the appimage version and it works as intended.
I wonder, the image conda pyqt5 would be the newest thing to come in freecad. You could explain the difference between the appimage without conda (glibc2).
Thanks
Re: Glass
The glibc2 AppImage (without Conda) is produced from the PPA repository for Ubuntu, which is still based on Python 2.x but will be updated to Python3 at some point.
Conda is a completely different, cross-platform way of creating packages. The PPA is exclusively for Ubuntu and derivatives (Linux Mint). The advantage of the PPA is that it is a system-installed package, it relies on libraries from the system, so its size is smaller than the AppImage, which comes with all necessary libraries (thus duplicates those already installed on the host system). Also, the PPA's updates are managed by the system's update manager. With the PPA you don't have to check for updates, they come automatically to you. On the other hand, the advantage of AppImage is that they are portable across Linux distros, are self-contained, don't rely on the system's libraries (I think?), which may be outdated/incompatible on some Linux systems.
Conda is a completely different, cross-platform way of creating packages. The PPA is exclusively for Ubuntu and derivatives (Linux Mint). The advantage of the PPA is that it is a system-installed package, it relies on libraries from the system, so its size is smaller than the AppImage, which comes with all necessary libraries (thus duplicates those already installed on the host system). Also, the PPA's updates are managed by the system's update manager. With the PPA you don't have to check for updates, they come automatically to you. On the other hand, the advantage of AppImage is that they are portable across Linux distros, are self-contained, don't rely on the system's libraries (I think?), which may be outdated/incompatible on some Linux systems.
Re: Glass
why don't we just remove the version that works with python 2.7 and qt4 since it's getting most confused?
- OficineRobotica
- Posts: 433
- Joined: Thu Feb 21, 2019 8:17 am
- Contact:
Re: Glass
Hello @triplus .
I'vd used your module and i must say that it becomes difficult to go back to the old interface. I really wish that Glass evolves to it's full potential. To my humble opinion this finally gives freecad a beautiful modern appearance and most of all, although the overlay docks might occupy the same physical space as classic docks, the perceived user experience is that of a much bigger work space.
That said Glass has becomed a learning experience for me after trying to fidle with the addon. Please help me with some aspects of modifying it.
1-given that the appimage takes a while to start and it doesn't retain the main freecad stylesheet preference i tried reloding the module with this instead of restarting the app
the problem is that the module doesn't refresh on screen and even the Q-1 shortcut stops working so a restart is needed.
2-at least for starters i would like to load the tree view instead of the combo view (that is till more widgets get implemented). I tried changing line 35 of GlassGui.py with:
but Glass stoped working completely. What em i doing wrong?
3-the main reason for me trying to modify the addon was to improve usability until you implement those features in a proper sane and informed way. I'm not a coder , i just saw a awesome adition to freecad and i got excited about the possibilities that it offers. So i tried to modify line 77 of GlassGui.py with:
for styling in an external file but either the pointer to that file is wrong or the formating of the .qss file so glass doesn't pick up the styling anymore after that.
Unfortunately i discovered that styling qt text can't be done directly with a style sheet but it is available trough PySyde QGraphicsEffect . I'm most interested in text outline and background blur. https://srinikom.github.io/pyside-docs/ ... ffect.html
I don't know if a widget with transparent background and and blur applied would pick the pixels underneath it (i know that on desktop that is the compositor work) but even implementing it with transparent background->noise map(as target image)->qtblur would be awesome and could potentially give a result like this
or this
Unfortunately implementing that is simply beyond me. I'm still at the lesson right after HelloWorld.cpp lol , but belive me that i'm trying really hard to find the time to study.
I'm sorry for the long post but i don't want to flood the thread with one thousand posts so i tried to gather it all together.
Thank you for your hard work.
OS: Ubuntu 18.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15900 (Git) AppImage
Build type: Release
Branch: master
Hash: a73b10203ab1cb31df4a8763b050d64da8e81580
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)
I'vd used your module and i must say that it becomes difficult to go back to the old interface. I really wish that Glass evolves to it's full potential. To my humble opinion this finally gives freecad a beautiful modern appearance and most of all, although the overlay docks might occupy the same physical space as classic docks, the perceived user experience is that of a much bigger work space.
That said Glass has becomed a learning experience for me after trying to fidle with the addon. Please help me with some aspects of modifying it.
1-given that the appimage takes a while to start and it doesn't retain the main freecad stylesheet preference i tried reloding the module with this instead of restarting the app
Code: Select all
>>> from importlib import reload
>>> import GlassGui
>>> reload(GlassGui)
<module 'GlassGui' from '/home/.../.FreeCAD/Mod/Glass/GlassGui.py'>
the problem is that the module doesn't refresh on screen and even the Q-1 shortcut stops working so a restart is needed.
2-at least for starters i would like to load the tree view instead of the combo view (that is till more widgets get implemented). I tried changing line 35 of GlassGui.py with:
Code: Select all
dock = mw.findChild(QtGui.QDockWidget, "Tree View")
3-the main reason for me trying to modify the addon was to improve usability until you implement those features in a proper sane and informed way. I'm not a coder , i just saw a awesome adition to freecad and i got excited about the possibilities that it offers. So i tried to modify line 77 of GlassGui.py with:
Code: Select all
widget.setStyleSheet("./Resources/glass.qss")
Unfortunately i discovered that styling qt text can't be done directly with a style sheet but it is available trough PySyde QGraphicsEffect . I'm most interested in text outline and background blur. https://srinikom.github.io/pyside-docs/ ... ffect.html
I don't know if a widget with transparent background and and blur applied would pick the pixels underneath it (i know that on desktop that is the compositor work) but even implementing it with transparent background->noise map(as target image)->qtblur would be awesome and could potentially give a result like this
or this
Unfortunately implementing that is simply beyond me. I'm still at the lesson right after HelloWorld.cpp lol , but belive me that i'm trying really hard to find the time to study.
I'm sorry for the long post but i don't want to flood the thread with one thousand posts so i tried to gather it all together.
Thank you for your hard work.
OS: Ubuntu 18.10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15900 (Git) AppImage
Build type: Release
Branch: master
Hash: a73b10203ab1cb31df4a8763b050d64da8e81580
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)
Check out my Youtube channel at: https://www.youtube.com/@OficineRobotica