@@ -33,17 +33,20 @@ def __init__(self, driver):
3333 self .ui .pushButton_login .clicked .connect (partial (bot .login , self , driver ))
3434 self .ui .pushButton_buy .clicked .connect (partial (bot .buy , self , driver ))
3535
36- self .action_site = QAction ("홈페이지" , self )
37- self .action_site .triggered .connect (partial (self .open_url , "https://www.dhlottery.co.kr/" ))
38- self .action_payment = QAction ("충전" , self )
39- self .action_payment .triggered .connect (partial (self .open_url , "https://www.dhlottery.co.kr/payment.do?method=payment" ))
36+ action_site = QAction ("홈페이지" , self )
37+ action_site .triggered .connect (partial (self .open_url , "https://www.dhlottery.co.kr/" ))
38+ action_payment = QAction ("충전" , self )
39+ action_payment .triggered .connect (partial (self .open_url , "https://www.dhlottery.co.kr/payment.do?method=payment" ))
40+ action_purchase = QAction ("구매내역" , self )
41+ action_purchase .triggered .connect (partial (self .open_url , "https://www.dhlottery.co.kr/myPage.do?method=lottoBuyListView" ))
4042 self .action_refresh = QAction ("새로고침" , self )
4143 self .action_refresh .triggered .connect (partial (bot .refresh , self , driver ))
4244 self .action_refresh .setEnabled (False )
4345
4446 self .menuBar ().clear ()
45- self .menuBar ().addAction (self .action_site )
46- self .menuBar ().addAction (self .action_payment )
47+ self .menuBar ().addAction (action_site )
48+ self .menuBar ().addAction (action_payment )
49+ self .menuBar ().addAction (action_purchase )
4750 self .menuBar ().addAction (self .action_refresh )
4851
4952 def open_url (self , url ):
0 commit comments