Development > Linux Lite Software Development

Who wants to write a basic About box for Linux Lite?

<< < (2/12) > >>

updated info line

--- Code: ---#!/usr/bin/env python
# code by - bitsnpcs & Jerry Bezencon (2018)

from Tkinter import *
import webbrowser

url1 = ''
url2 = ''
url3 = ''
url4 = ''
url5 = ''
url6 = ''
url7 = ''
url8 = '/usr/share/doc/litemanual/index.html'

# open browser and display url at line 7 thru 13
def OpenUrl1():

def OpenUrl2():

def OpenUrl3():
def OpenUrl4():
def OpenUrl5():

def OpenUrl6():
def OpenUrl7():

def OpenUrl8():
def close_window():
# Make window
window = Tk()
window.title("About Linux Lite")

# adding a menubar
menubar = Menu(window, bg='#ffe082')

photovar1 = PhotoImage(file='mlogo.png')
llmenu = Menubutton(menubar, image=photovar1)
menubar.add_cascade(image=photovar1, menu=llmenu)

supportmenu = Menu(menubar, bg='#ffe082', tearoff=0)
menubar.add_cascade(label='Support', menu=supportmenu)

contributemenu = Menu(menubar, bg='#ffe082', tearoff=0)
menubar.add_cascade(label='Contribute', menu=contributemenu)

def doSupport(  ): print 'doSupport'

supportmenu.add_command(label='Help Manual (local)', command=OpenUrl8)
supportmenu.add_command(label='Help Manual (online)', command=OpenUrl4)
supportmenu.add_command(label='Forums', command=OpenUrl5)
supportmenu = Menu(menubar)

def doContribute(  ): print 'doContribute'

contributemenu.add_command(label='Donate', command=OpenUrl6)
contributemenu.add_command(label='Shop', command=OpenUrl7)
contributemenu = Menu(menubar)

# uncomment below to add separator in menu, place code where seperator is wanted
# filemenu.add_separator(  )

# adding a logo
l1 = Button(image=photo,width=160, height=59, command=OpenUrl3)
l1.grid(row=4, column=0), y=12)
l1 = Label(window, text="     ")
l1.grid(row=5, column=0, sticky=W)
l1 = Label(window, text="     ")
l1.grid(row=6, column=0, sticky=W)
l1 = Label(window, text="     ")
l1.grid(row=7, column=0, sticky=W)
l1 = Label(window, text="     ")
l1.grid(row=8, column=0, sticky=W)

# adding a frame for ll website button
GUIFrame1.grid(row=11, column=0)

#adding a frame for last row of buttons
GUIFrame2.grid(row=13, column=0)

# define title, nym, year
l2 = Label(window, text=u"\u00a9Copyright 2012-2018 Jerry Bezencon", fg="grey", font="none 8")
l2.grid(row=15, column=0)

l3 = Label(window, text="     ")
l3.grid(row=0, column=0, sticky=W)
l3 = Label(window, text="     ")
l3.grid(row=12, column=0, sticky=W)
l3 = Label(window, text="     ")
l3.grid(row=14, column=0, sticky=W)

l4 = Label(window, text="Current Version:")
l4.grid(row=9, column=0)

# r/w file to gui background
file = open("/etc/llver")
data =
Results = Label(window, text = data)
Results.grid(row = 10, column = 0)

# ll website button
l5 = Label(GUIFrame1, text=" ")
l5.grid(row=11, column=0, sticky=W)
Button(GUIFrame1, text="Visit Linux Lite website", width=16, command=OpenUrl3).grid(row=11, column=0)

# last row of buttons
l6 = Label(GUIFrame2, text=" ")
l6.grid(row=13, column=0)
Button(GUIFrame2, text="Credits", width=6, command=OpenUrl1).grid(row=13, column=1)
Button(GUIFrame2, text="License", width=6, command=OpenUrl2).grid(row=13, column=2)
Button(GUIFrame2, text="Close", width=6, command=window.destroy).grid(row=13, column=3)

--- End code ---

I understand now when you wrote earlier about it is quite a long way away.

When does LL 5.0 get released ? - There's no official Roadmap until the end of Series 4.x, but you can assume around 1st June 2020.

Do you have a list of apps, or a poll of apps for LL 5.0 and beyond ? Not yet, to early. I'm still considering what if much at all, I can introduce to 4.x We are pretty complete now.


--- Quote from: Jerry on October 22, 2018, 10:37:01 PM ---#5 - reads my /etc/llver file perfectly, no matter what I put in it. Nice job :)

--- End quote ---


--- Quote from: Jerry on October 22, 2018, 10:40:26 PM ---In regards to Themes - Id like to keep the app as simple as possible for the moment. What I did have an idea about is 'Send Logs' from the Menu.
This would make a tar.gz and upload all relevant logs that devs need to see in order to fix a problem. This is already an About box on steroids, so we may need to just concentrate on refinement for now.

--- End quote ---

The "Send Logs" sounds like it would be a useful app for both members and devs.

Concentrating on refinement sounds good.

When does LL 5.0 get released ?

Do you have a list of apps, or a poll of apps for LL 5.0  and beyond ?

Awesome :)


[0] Message Index

[#] Next page

[*] Previous page

Go to full version