xianyu wrote: ↑Tue Oct 18, 2022 7:21 am
I can design dialog boxes. (help me get many input values from users).
What I finally want is the best place for the dialog box to pop up. Task panel or pop up window?
This is your decision it depends on the how much values you have to enter, and if you are coding something like an FPO that could be used as a standalone object.
xianyu wrote: ↑Tue Oct 18, 2022 7:21 am
If you use a Task panel, what "App:: XXXXX" should I use.
No App::XXXX you have to find the proper child of
Gui.getMainWindow():
In 0.21 is it called Task. try this code from:
https://forum.freecadweb.org/viewtopic. ... 81#p626781
Code: Select all
from PySide import QtGui, QtCore
Gui.getMainWindow().findChild(QtGui.QWidget,'Tasks').show()
But probably it will not work if you are targeting 0.20 as from the discussion some modifications have been done for 0.21.
xianyu wrote: ↑Tue Oct 18, 2022 7:21 am
If you use a pop up window, in Property-Data, is there any way to pop up the dialog (like placement)
For this is a standard dialog, but probably you have to put a button somewhere or trigger the appearance of a dialog when a property is changed, but as above if you have coded an FPO.
As usual abstract question without code are difficult to answer, at least by me.
UI is not my best known part of FC.
Hope it helps
Regards
Carlo D.