You are Here:
Linux Lite 4.2 Final has been released. See the Release Announcements Section.



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

Author (Read 1802 times)

0 Members and 2 Guests are viewing this topic.

Who wants to write a basic About box for Linux Lite?
« on: October 16, 2018, 04:06:10 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 6449
    Posts
  • Country: nz
  • Reputation: 586
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
I'm thinking in Series 5.x of having a replacement for llver.

When you type in llver, a simple dialogue box will appear with some basic information about Linux Lite. Think 'winver' in Windows.



A linux example:



The yad box is about perfect as an example of layout, information etc.

Our About box needs to have:

- Latest version of Linux Lite
- License (GPLv2) button
- Close button
- Credits button
- Linux Lite logo
- Linux to our website
- Copyright 2012 - 2018

You can write this in any language you like. I would suggest Python, but it's up to you. The finished product needs to be one, executable file. eg. llver.py

Happy hacking!
Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

Learn to use your emotions to think, not think with your emotions.



 


Re: Who wants to write a basic About box for Linux Lite?
« Reply #1 on: October 16, 2018, 07:54:34 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2798
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
Hello,
is there a url for the credits button ?
Edit -Linked to the Team page on main site
Last Edit: October 16, 2018, 09:17:10 PM by bitsnpcs
 

Re: Who wants to write a basic About box for Linux Lite?
« Reply #2 on: October 16, 2018, 10:13:02 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2798
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit



I cannot get an image to embed directly in to, as I haven't done that before and not having much luck with it, maybe someone else can do that, if you like it that is.
The image just as an example goes between the LL 5.0 and Simple Fast Free, line of text, it can go above like in the example if you wanted.

The button for Linux Lite website, detects and opens the default browser (tested with Firefox and Opera) and displays the Main LL website.
Credits button opens a browser and loads the #Team page on the Main LL website.
License button opens the GPLv2 license webpage.
Close button kills/closes the window, with zero errors (tested), also the X button will close the window (tested) with no errors.

I wrote this in Python, using Gedit, (on Linux Lite)  it runs from 1 file "llver.py" from the command line.
It can be run from a desktop icon or menu item, and the silent tag used so it displays only the gui and not the terminal.
If you like it I can add the Python code to a reply.
Last Edit: October 16, 2018, 10:30:12 PM by bitsnpcs
 

Re: Who wants to write a basic About box for Linux Lite?
« Reply #3 on: October 17, 2018, 01:37:46 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 6449
    Posts
  • Country: nz
  • Reputation: 586
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
That's excellent bitsnpcs, we are on the right track :)

You can point to an existing logo icon location in your code. If you could embed your code into this thread each time you make a change, that would be great.
Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

Learn to use your emotions to think, not think with your emotions.



 

Re: Who wants to write a basic About box for Linux Lite?
« Reply #4 on: October 17, 2018, 09:37:55 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2798
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
Code: [Select]
#!/usr/bin/env python
# code by bitsnpcs

from Tkinter import *
import webbrowser

url1 = '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 9
def OpenUrl1():
    webbrowser.open(url1)

def OpenUrl2():
    webbrowser.open(url2)

def OpenUrl3():
    webbrowser.open(url3)
   
def close_window():
    window.destroy()

# Make window
window = Tk()
window.title("About Linux Lite")
window.geometry("242x242")

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

#adding a frame for last row of buttons
GUIFrame2=Frame(window)
GUIFrame2.grid(row=11, column=0, sticky=W)

# define title, nym, year
l1 = 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 button
l5 = 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 buttons
l6 = 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()

Here is the code for as it is above.
I will look in to how to link to the icon.
 

Re: Who wants to write a basic About box for Linux Lite?
« Reply #5 on: October 17, 2018, 10:27:05 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2798
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit


I was not able to find this banner on my computer, so I borrowed it from the main website and edited it in GIMP to make it smaller.
As you can see it is not top quality resolution  image like the main site, if this is the banner wanted I would need the image in better quality resolution, or a location of one on the hard drive, so I can add the Path to it in the code.
The banner can be bigger or it can be centred better.

I was unsure of how you want the Version text placement or wording ?
Do you want the Copyright line moved to centre in width or left aligned as it is.
I need to center the bottom three buttons in the next version, as they look slightly to the right.
Here is the updated code.

Code: [Select]
#!/usr/bin/env python
# code by bitsnpcs

from Tkinter import *
import webbrowser

url1 = '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 9
def OpenUrl1():
    webbrowser.open(url1)

def OpenUrl2():
    webbrowser.open(url2)

def OpenUrl3():
    webbrowser.open(url3)
   
def close_window():
    window.destroy()

# Make window
window = Tk()
window.title("About Linux Lite")
window.geometry("242x242")

# adding a logo

photo=PhotoImage(file="logo.png")
l1 = Label(image=photo)
l1.grid(row=4, column=0)
# adding a frame for ll website button
GUIFrame1=Frame(window)
GUIFrame1.grid(row=10, column=0)

#adding a frame for last row of buttons
GUIFrame2=Frame(window)
GUIFrame2.grid(row=11, column=0, sticky=W)

# define title, nym, year

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=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 button
l5 = 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 buttons
l6 = 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()


Last Edit: October 17, 2018, 10:31:08 AM by bitsnpcs
 

Re: Who wants to write a basic About box for Linux Lite?
« Reply #6 on: October 17, 2018, 10:33:02 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 6449
    Posts
  • Country: nz
  • Reputation: 586
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
In it's current state it looks damn good! We can collab more on this on the weekend if that suits you. Excellent job!

Sent from my Mobile phone using Tapatalk

Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

Learn to use your emotions to think, not think with your emotions.



 

Re: Who wants to write a basic About box for Linux Lite?
« Reply #7 on: October 17, 2018, 10:38:01 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 6449
    Posts
  • Country: nz
  • Reputation: 586
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
Can you get rid of the maximize and minimise buttons on the title bar, and make the window non-resizeable please.

Sent from my Mobile phone using Tapatalk

Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

Learn to use your emotions to think, not think with your emotions.



 

Re: Who wants to write a basic About box for Linux Lite?
« Reply #8 on: October 17, 2018, 10:39:02 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2798
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
Yes that would be good  :) Saturday is okay.
Sunday I only go online on the evening.
I'll look in to how it is done.
 

Re: Who wants to write a basic About box for Linux Lite?
« Reply #9 on: October 17, 2018, 10:58:43 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2798
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
Removed maximize and minimize joint button.
Made the window non resizable by dragging the window edges.
I have to look in to how to remove the minimize button without losing the X to close the window.



updated code -
Code: [Select]
#!/usr/bin/env python
# code by bitsnpcs

from Tkinter import *
import webbrowser

url1 = '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 9
def OpenUrl1():
    webbrowser.open(url1)

def OpenUrl2():
    webbrowser.open(url2)

def OpenUrl3():
    webbrowser.open(url3)
   
def close_window():
    window.destroy()

# Make window
window = Tk()
window.title("About Linux Lite")
window.geometry("242x242")
window.resizable(0,0)

# adding a logo
photo=PhotoImage(file="logo.png")
l1 = Label(image=photo)
l1.grid(row=4, column=0)

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

#adding a frame for last row of buttons
GUIFrame2=Frame(window)
GUIFrame2.grid(row=11, column=0, sticky=W)

# define title, nym, year
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=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 button
l5 = 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 buttons
l6 = 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()
Last Edit: October 17, 2018, 11:07:22 AM by bitsnpcs
 

Re: Who wants to write a basic About box for Linux Lite?
« Reply #10 on: October 17, 2018, 11:38:50 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 6449
    Posts
  • Country: nz
  • Reputation: 586
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
Awesome :)

Sent from my Mobile phone using Tapatalk

Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

Learn to use your emotions to think, not think with your emotions.



 

Re: Who wants to write a basic About box for Linux Lite?
« Reply #11 on: October 17, 2018, 12:29:52 PM »
 

firenice03

  • Rockin' the FREE World
  • Gold Level Poster
  • *******
  • 972
    Posts
  • Country: us
  • Reputation: 194
  • Linux Lite Member

  • Linux Lite: 4.2 64bit

  • CPU: Atom X5/AMD Phenom II X2

  • MEMORY: 8Gb

  • VIDEO CARD: Intel//AMD/ATI RS880
Looking good @bitsnpcs


 ;D ;D ;D ;D
LL 3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express
LL 3.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL 4.2 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
RETIRED LL 2.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA
Running Linux Lite since LL2.2
 

Re: Who wants to write a basic About box for Linux Lite?
« Reply #12 on: October 17, 2018, 03:38:10 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2798
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
Looking good @bitsnpcs


Thank You @Jerry  :) and @firenice03  :)
@Jerry  I cannot find a way to remove the minimize button that reduces the window to the panel.
 

Re: Who wants to write a basic About box for Linux Lite?
« Reply #13 on: October 17, 2018, 03:48:30 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2798
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
Small changes -
aligned last row of buttons a little better.
Altered Copyright line to bring the C logo and word Copyright closer/spaced correctly.




Updated code

Code: [Select]
#!/usr/bin/env python
# code by bitsnpcs

from Tkinter import *
import webbrowser

url1 = '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 9
def OpenUrl1():
    webbrowser.open(url1)

def OpenUrl2():
    webbrowser.open(url2)

def OpenUrl3():
    webbrowser.open(url3)
   
def close_window():
    window.destroy()

# Make window
window = Tk()
window.title("About Linux Lite")
window.geometry("242x242")
window.resizable(0,0)

# adding a logo
photo=PhotoImage(file="logo.png")
l1 = Label(image=photo)
l1.grid(row=4, column=0)

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

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

# define title, nym, year
l2 = Label(window, text=u"\u00a9Copyright 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 button
l5 = 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 buttons
l6 = Label(GUIFrame2, text=" ")
l6.grid(row=11, column=0)
Button(GUIFrame2, text="Credits", width=6, command=OpenUrl1).grid(row=11, column=1)
Button(GUIFrame2, text="License", width=6, command=OpenUrl2).grid(row=11, column=2)
Button(GUIFrame2, text="Close", width=6, command=window.destroy).grid(row=11, column=3)

window.mainloop()

Edited -
further edited code for button aligned image is new screenshot after this

Last Edit: October 17, 2018, 03:57:41 PM by bitsnpcs
 

Re: Who wants to write a basic About box for Linux Lite?
« Reply #14 on: October 17, 2018, 04:07:45 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2798
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
code in Gedit, (Gedit theme monokai extended) -


 


Tags:
 


Linux Lite 4.2 Final has been released. See the Release Announcements Section.