Skip to content

Commit

Permalink
Update metodos.py
Browse files Browse the repository at this point in the history
Added a button that has a link to the repository of the code
  • Loading branch information
dmtzs committed Sep 29, 2021
1 parent 181c51e commit b3bb9fe
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions biblios/metodos.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ def resource_path(self, relativePath):
return os.path.join(basePath, relativePath)

def GUI(self):
def repoGit():
webbrowser.open("https://github.com/dmtzs/qrcode")

def abrirRuta():
self.folderName= filedialog.askdirectory()

Expand Down Expand Up @@ -131,5 +134,13 @@ def qrcodeGenerator():
# Apply button
applyBut= tk.Button(self.mainWin, text= "Generate qrcode", fg= "white", bg= "#0A617C", width= 15, takefocus= False, command= qrcodeGenerator)
applyBut.place(relx= 0.5, y= 315, anchor= CENTER)

# Label to github repository
labelGit= tk.Label(self.mainWin, text= "Repositorio del programa:", font= ("jost", 10))
labelGit.place(x= 130, y= 525)

# Button to repository
butGit= tk.Button(self.mainWin, width= 10, bg= "#0A617C", fg= "white", text= "Repositorio", takefocus= False, command= repoGit)
butGit.place(x= 290, y= 523)

self.mainWin.mainloop()

0 comments on commit b3bb9fe

Please sign in to comment.