mirror of
https://github.com/derrod/legendary.git
synced 2025-08-27 12:21:00 +00:00
added proper login (kinda)
This commit is contained in:
parent
53cfd47f29
commit
aaae570e46
|
@ -44,9 +44,22 @@ def log_gtk(msg):
|
||||||
class main_window(Gtk.Window):
|
class main_window(Gtk.Window):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Gtk.Window.__init__(self,title="Legendary")
|
Gtk.Window.__init__(self,title="Legendary")
|
||||||
self.button = Gtk.Button(label="Login")
|
self.grid = Gtk.Grid(
|
||||||
self.button.connect("clicked", self.onclick)
|
column_spacing=30,
|
||||||
self.add(self.button)
|
row_spacing=30
|
||||||
|
)
|
||||||
|
self.add(self.grid)
|
||||||
|
|
||||||
|
# 'Legendary' label
|
||||||
|
self.legendary_label = Gtk.Label(label="Legendary")
|
||||||
|
self.grid.attach(self.legendary_label, 1, 1, 1, 1)
|
||||||
|
|
||||||
|
# Login button
|
||||||
|
self.button_login = Gtk.Button(label="Login")
|
||||||
|
self.button_login.connect("clicked", self.onclick)
|
||||||
|
self.grid.attach(self.button_login, 1, 2, 1, 1)
|
||||||
|
|
||||||
|
|
||||||
def onclick(self, widget):
|
def onclick(self, widget):
|
||||||
webbrowser.open('https://www.epicgames.com/id/login?redirectUrl=https%3A%2F%2Fwww.epicgames.com%2Fid%2Fapi%2Fredirect')
|
webbrowser.open('https://www.epicgames.com/id/login?redirectUrl=https%3A%2F%2Fwww.epicgames.com%2Fid%2Fapi%2Fredirect')
|
||||||
exchange_token = ''
|
exchange_token = ''
|
||||||
|
|
Loading…
Reference in a new issue