[solved] Show hourglass?
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
- thomas-neemann
- Veteran
- Posts: 11958
- Joined: Wed Jan 22, 2020 6:03 pm
- Location: Osnabrück DE 🇩🇪
- Contact:
[solved] Show hourglass?
is there a macro command that can be used to display and remove the hourglass?
Last edited by thomas-neemann on Wed Dec 08, 2021 6:11 pm, edited 1 time in total.
-
- Veteran
- Posts: 5513
- Joined: Thu Apr 05, 2018 1:53 am
Re: Show hourglass?
You mean the wait cursor?
Code: Select all
QtGui.QApplication.setOverrideCursor(QtCore.Qt.WaitCursor)
QtGui.QApplication.restoreOverrideCursor()
Re: Show hourglass?
don't forget
Code: Select all
import QtGui
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- papyblaise
- Veteran
- Posts: 8024
- Joined: Thu Jun 13, 2019 4:28 pm
- Location: France
Re: Show hourglass?
under windows, there is a large amount of wait cursor, adjustable in "General Parameters"
in the other OCs, I don't know
in the other OCs, I don't know
- thomas-neemann
- Veteran
- Posts: 11958
- Joined: Wed Jan 22, 2020 6:03 pm
- Location: Osnabrück DE 🇩🇪
- Contact:
Re: Show hourglass?
Thanks everyone for your help. I am a beginner in python. I didn't get it to work like that, but it was good information that I could google with.
I found what works for me here.
edit
this was necessary for me
sudo apt install python3-pyqt5
I found what works for me here.
Code: Select all
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QApplication
QApplication.setOverrideCursor(Qt.WaitCursor)
edit
this was necessary for me
sudo apt install python3-pyqt5
Re: [solved] Show hourglass?
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
- thomas-neemann
- Veteran
- Posts: 11958
- Joined: Wed Jan 22, 2020 6:03 pm
- Location: Osnabrück DE 🇩🇪
- Contact:
Re: [solved] Show hourglass?
hi mario
thanks for the hint, something like that can already be requested by the customers. I would also like it for freecad out of the box
thomas