Skip to content
Snippets Groups Projects
Commit ab23e858 authored by Jason Kanggara's avatar Jason Kanggara
Browse files

add parameter to get user id

parent 2f4ca59a
Branches
Tags
3 merge requests!5Develop,!2Tips and trick Feature,!1Tips and trick Feature
......@@ -72,9 +72,9 @@ class tips_and_trick(object):
font.setPointSize(30)
self.content.setFont(font)
def openTipsAndTrick(self, Frame):
def openTipsAndTrick(self, Frame, userId):
self.idpremium = listidpremium
if 101 in self.idpremium:
if userId in self.idpremium:
self.tipsAndTrickUi(Frame)
else:
self.notPremiumUi(Frame)
......@@ -85,6 +85,6 @@ if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
Frame = QtWidgets.QFrame()
ui = tips_and_trick()
ui.openTipsAndTrick(Frame)
ui.openTipsAndTrick(Frame, 102)
Frame.show()
sys.exit(app.exec_())
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment