ufechner
2012-10-31 12:45:36 UTC
Hello,
I am running the basic example:
# -*- coding: utf-8 -*-
import guidata
try:
tmp
except NameError:
tmp = guidata.qapplication() # not required if a QApplication has already
been created
import guidata.dataset.datatypes as dt
import guidata.dataset.dataitems as di
class Processing(dt.DataSet):
"""Example"""
a = di.FloatItem("Parameter #1", default=2.3)
b = di.IntItem("Parameter #2", min=0, max=10, default=5)
type = di.ChoiceItem("Processing algorithm",
("type 1", "type 2", "type 3"))
param = Processing()
param.edit()
How can I make sure that the dialog is centered on the screen?
It is when I run it the first time, but every other time it is in the top
left corner.
Thank's for your help!
Uwe Fechner
I am running the basic example:
# -*- coding: utf-8 -*-
import guidata
try:
tmp
except NameError:
tmp = guidata.qapplication() # not required if a QApplication has already
been created
import guidata.dataset.datatypes as dt
import guidata.dataset.dataitems as di
class Processing(dt.DataSet):
"""Example"""
a = di.FloatItem("Parameter #1", default=2.3)
b = di.IntItem("Parameter #2", min=0, max=10, default=5)
type = di.ChoiceItem("Processing algorithm",
("type 1", "type 2", "type 3"))
param = Processing()
param.edit()
How can I make sure that the dialog is centered on the screen?
It is when I run it the first time, but every other time it is in the top
left corner.
Thank's for your help!
Uwe Fechner