Skip to content

Commit

Permalink
QT6 QtWidgets.QDialog.DialogCode.Accepted issue
Browse files Browse the repository at this point in the history
  • Loading branch information
michael xu committed May 16, 2023
1 parent 863b18a commit 476c6c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions userInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ def addSma(self):
paramDialog.addParameterColor("Plot color", "#FFFF00")
paramDialog.adjustSize()

if (paramDialog.exec() == QtWidgets.QDialog.Accepted ):
if (paramDialog.exec() == QtWidgets.QDialog.DialogCode.Accepted ):
period = paramDialog.getValue("SMA Period")
width = paramDialog.getValue("Plot width")
qColor = paramDialog.getColorValue("Plot color")
Expand All @@ -688,7 +688,7 @@ def addEma(self):
paramDialog.addParameterColor("Plot color", "#FFFF00")
paramDialog.adjustSize()

if (paramDialog.exec() == QtWidgets.QDialog.Accepted ):
if (paramDialog.exec() == QtWidgets.QDialog.DialogCode.Accepted ):
period = paramDialog.getValue("EMA Period")
width = paramDialog.getValue("Plot width")
qColor = paramDialog.getColorValue("Plot color")
Expand All @@ -708,7 +708,7 @@ def toogleRsi(self):
paramDialog.addParameterColor("Plot color", "#FFFF00")
paramDialog.adjustSize()

if (paramDialog.exec() == QtWidgets.QDialog.Accepted ):
if (paramDialog.exec() == QtWidgets.QDialog.DialogCode.Accepted ):
period = paramDialog.getValue("RSI Period")
qColor = paramDialog.getColorValue("Plot color")
self.fpltWindow[self.current_timeframe].drawRsi( period, qColor )
Expand All @@ -735,7 +735,7 @@ def toogleStochastic(self):
paramDialog.addParameter("Stochastic Smooth D", 3)
paramDialog.adjustSize()

if (paramDialog.exec() == QtWidgets.QDialog.Accepted ):
if (paramDialog.exec() == QtWidgets.QDialog.DialogCode.Accepted ):
period = paramDialog.getValue("Stochastic Period K")
smooth_k = paramDialog.getValue("Stochastic Smooth K")
smooth_d = paramDialog.getValue("Stochastic Smooth D")
Expand Down Expand Up @@ -764,7 +764,7 @@ def toogleStochasticRsi(self):
paramDialog.addParameter("Stochastic Rsi Smooth D", 3)
paramDialog.adjustSize()

if (paramDialog.exec() == QtWidgets.QDialog.Accepted ):
if (paramDialog.exec() == QtWidgets.QDialog.DialogCode.Accepted ):
period = paramDialog.getValue("Stochastic Rsi Period K")
smooth_k = paramDialog.getValue("Stochastic Rsi Smooth K")
smooth_d = paramDialog.getValue("Stochastic Rsi Smooth D")
Expand Down

0 comments on commit 476c6c6

Please sign in to comment.