0 Members and 1 Guest are viewing this topic.
Looking good @bitsnpcs
#!/usr/bin/env python# code by bitsnpcsfrom Tkinter import *import webbrowserurl1 = 'https://www.linuxliteos.com/development.html#team'url2 = 'https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html'url3 = 'https://www.linuxliteos.com/'# open browser and display url at line 7 thru 9def OpenUrl1(): webbrowser.open(url1)def OpenUrl2(): webbrowser.open(url2)def OpenUrl3(): webbrowser.open(url3) def close_window(): window.destroy()# Make windowwindow = Tk()window.title("About Linux Lite")window.geometry("242x242")window.resizable(0,0)# adding a logophoto=PhotoImage(file="logo.png")l1 = Label(image=photo)l1.grid(row=4, column=0)# adding a frame for ll website buttonGUIFrame1=Frame(window)GUIFrame1.grid(row=10, column=0)#adding a frame for last row of buttonsGUIFrame2=Frame(window)GUIFrame2.grid(row=11, column=0, sticky=W)# define title, nym, yearl2 = Label(window, text=u"\u00a9 Copyright 2012-2018 Jerry Bezencon", fg="grey", font="none 8")l2.grid(row=13, column=0)l3 = Label(window, text=" ")l3.grid(row=0, column=0, sticky=W)l3 = Label(window, text=" ")l3.grid(row=10, column=0, sticky=W)l3 = Label(window, text=" ")l3.grid(row=7, column=0, sticky=W)l3 = Label(window, text=" ")l3.grid(row=12, column=0, sticky=W)l4 = Label(window, text="Current Version: 5.0")l4.grid(row=8, column=0)l3 = Label(window, text=" ")l3.grid(row=9, column=0, sticky=W)# ll website buttonl5 = Label(GUIFrame1, text=" ")l5.grid(row=11, column=0, sticky=W)Button(GUIFrame1, text="Visit Linux Lite website", width=19, command=OpenUrl3).grid(row=10, column=1, sticky=W)# last row of buttonsl6 = Label(GUIFrame2, text=" ")l6.grid(row=11, column=0, sticky=W)Button(GUIFrame2, text="Credits", width=6, command=OpenUrl1).grid(row=11, column=1, sticky=W)Button(GUIFrame2, text="License", width=6, command=OpenUrl2).grid(row=11, column=2, sticky=W)Button(GUIFrame2, text="Close", width=6, command=window.destroy).grid(row=11, column=3, sticky=W)window.mainloop()
#!/usr/bin/env python# code by bitsnpcsfrom Tkinter import *import webbrowserurl1 = 'https://www.linuxliteos.com/development.html#team'url2 = 'https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html'url3 = 'https://www.linuxliteos.com/'# open browser and display url at line 7 thru 9def OpenUrl1(): webbrowser.open(url1)def OpenUrl2(): webbrowser.open(url2)def OpenUrl3(): webbrowser.open(url3) def close_window(): window.destroy()# Make windowwindow = Tk()window.title("About Linux Lite")window.geometry("242x242")# adding a logophoto=PhotoImage(file="logo.png")l1 = Label(image=photo)l1.grid(row=4, column=0)# adding a frame for ll website buttonGUIFrame1=Frame(window)GUIFrame1.grid(row=10, column=0)#adding a frame for last row of buttonsGUIFrame2=Frame(window)GUIFrame2.grid(row=11, column=0, sticky=W)# define title, nym, yearl2 = Label(window, text=u"\u00a9 Copyright 2012-2018 Jerry Bezencon", fg="grey", font="none 8")l2.grid(row=13, column=0)l3 = Label(window, text=" ")l3.grid(row=0, column=0, sticky=W)l3 = Label(window, text=" ")l3.grid(row=10, column=0, sticky=W)l3 = Label(window, text=" ")l3.grid(row=7, column=0, sticky=W)l3 = Label(window, text=" ")l3.grid(row=12, column=0, sticky=W)l4 = Label(window, text="Current Version: 5.0")l4.grid(row=8, column=0)l3 = Label(window, text=" ")l3.grid(row=9, column=0, sticky=W)# ll website buttonl5 = Label(GUIFrame1, text=" ")l5.grid(row=11, column=0, sticky=W)Button(GUIFrame1, text="Visit Linux Lite website", width=19, command=OpenUrl3).grid(row=10, column=1, sticky=W)# last row of buttonsl6 = Label(GUIFrame2, text=" ")l6.grid(row=11, column=0, sticky=W)Button(GUIFrame2, text="Credits", width=6, command=OpenUrl1).grid(row=11, column=1, sticky=W)Button(GUIFrame2, text="License", width=6, command=OpenUrl2).grid(row=11, column=2, sticky=W)Button(GUIFrame2, text="Close", width=6, command=window.destroy).grid(row=11, column=3, sticky=W)window.mainloop()
#!/usr/bin/env python# code by bitsnpcsfrom Tkinter import *import webbrowserurl1 = 'https://www.linuxliteos.com/development.html#team'url2 = 'https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html'url3 = 'https://www.linuxliteos.com/'# open browser and display url at line 7 thru 9def OpenUrl1(): webbrowser.open(url1)def OpenUrl2(): webbrowser.open(url2)def OpenUrl3(): webbrowser.open(url3) def close_window(): window.destroy()# Make windowwindow = Tk()window.title("About Linux Lite")window.geometry("242x242")# adding a frame for ll website buttonGUIFrame1=Frame(window)GUIFrame1.grid(row=10, column=0)#adding a frame for last row of buttonsGUIFrame2=Frame(window)GUIFrame2.grid(row=11, column=0, sticky=W)# define title, nym, yearl1 = Label(window, text=" Linux Lite 5.0", font="bold")l1.grid(row=1, column=0, sticky=W)l2 = Label(window, text=u"\u00a9 Copyright 2012-2018 Jerry Bezencon", fg="grey", font="none 8")l2.grid(row=13, column=0)l3 = Label(window, text=" ")l3.grid(row=4, column=0, sticky=W)l3 = Label(window, text=" ")l3.grid(row=0, column=0, sticky=W)l3 = Label(window, text=" ")l3.grid(row=10, column=0, sticky=W)l3 = Label(window, text=" ")l3.grid(row=6, column=0, sticky=W)l3 = Label(window, text=" ")l3.grid(row=7, column=0, sticky=W)l3 = Label(window, text=" ")l3.grid(row=12, column=0, sticky=W)l4 = Label(window, text=" Simple Fast Free")l4.grid(row=8, column=0, sticky=W)l3 = Label(window, text=" ")l3.grid(row=9, column=0, sticky=W)# ll website buttonl5 = Label(GUIFrame1, text=" ")l5.grid(row=11, column=0, sticky=W)Button(GUIFrame1, text="Visit Linux Lite website", width=19, command=OpenUrl3).grid(row=10, column=1, sticky=W)# last row of buttonsl6 = Label(GUIFrame2, text=" ")l6.grid(row=11, column=0, sticky=W)Button(GUIFrame2, text="Credits", width=6, command=OpenUrl1).grid(row=11, column=1, sticky=W)Button(GUIFrame2, text="License", width=6, command=OpenUrl2).grid(row=11, column=2, sticky=W)Button(GUIFrame2, text="Close", width=6, command=window.destroy).grid(row=11, column=3, sticky=W)window.mainloop()