File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,24 @@ def __init__(self, parent = None):
18
18
self .parameterLayout = self .findChild (QtWidgets .QFormLayout , "parameterLayout" )
19
19
20
20
# Move at the center of the window
21
- x = int (parent .sizeHint ().width () / 2 - self .sizeHint ().width ())
22
- y = int (parent .sizeHint ().height () / 2 - self .sizeHint ().height ())
21
+ # x = int(parent.sizeHint().width() / 2 - self.sizeHint().width())
22
+ # y = int(parent.sizeHint().height() / 2 - self.sizeHint().height())
23
23
24
- self .move ( x , y )
24
+ #self.move( x, y )
25
+ pw = parent .sizeHint ().width ()
26
+ ph = parent .sizeHint ().height ()
27
+
28
+ px = parent .x ()
29
+ py = parent .y ()
30
+
31
+ myH = self .height ()
32
+
33
+ self .move ( parent .sizeHint ().width () - (self .width () / 2 ), (parent .sizeHint ().height () / 2 ) - (self .height () / 2 ))
25
34
26
35
self .layout ().setSizeConstraint ( QtWidgets .QLayout .SetFixedSize )
27
36
37
+ self .setStyleSheet ("border: solid 1px #FFF" )
38
+
28
39
pass
29
40
30
41
def setTitle (self , title ):
Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ def resetChart(self):
638
638
def addSma (self ):
639
639
640
640
# Show indicator parameter dialog
641
- paramDialog = indicatorParametersUI .IndicatorParametersUI (self .dock_charts [ self . current_timeframe ] )
641
+ paramDialog = indicatorParametersUI .IndicatorParametersUI (self .win )
642
642
paramDialog .setWindowFlags (QtCore .Qt .CustomizeWindowHint )
643
643
paramDialog .setTitle ("SMA Indicator parameters" )
644
644
paramDialog .addParameter ("SMA Period" , 14 )
@@ -654,7 +654,7 @@ def addSma(self):
654
654
def addEma (self ):
655
655
656
656
# Show indicator parameter dialog
657
- paramDialog = indicatorParametersUI .IndicatorParametersUI (self .dock_charts [ self . current_timeframe ] )
657
+ paramDialog = indicatorParametersUI .IndicatorParametersUI (self .win )
658
658
paramDialog .setWindowFlags (QtCore .Qt .CustomizeWindowHint )
659
659
paramDialog .setTitle ("EMA Indicator parameters" )
660
660
paramDialog .addParameter ("EMA Period" , 9 )
You can’t perform that action at this time.
0 commit comments