Sunday, June 11, 2023

A Python Program I wrote

 I wrote a Python Program the other day, ignore the links, it has a button to go to a test website, a button to quit, and a button to go to a website my parents made, as well as some text. Here it is:

from tkinter import *
from tkinter import ttk
import webbrowser

root = Tk()

def opentestsite():
    url = ""

def opengoogleaja():

frm = ttk.Frame(root, padding=10)
ttk.Label(frm, text="Hello World!").grid(column=0, row=0)
ttk.Button(frm, text="Quit", command=root.destroy).grid(column=1, row=0)
ttk.Label(frm, text="test line 2").grid(column=0, row=1)
ttk.Button(frm, text="Open test website", command=opentestsite).grid(column=1, row=1)
ttk.Button(frm, text="Open", command=opengoogleaja).grid(column=0, row=2)


It should work on Python 3.10.8 and maybe above, I used the IDLE editor and installed it from the official Python website I also used the official Tkinter library as well as the new cleaner-looking ttk.
I suggest copy-pasting it straight out and it should work without you having to install anything unless your Python instalment doesn't have tkinter like in Jupyter Notebook where it is not in the initial package due to software limitations.

Games I Play

     My mom and dad often tell me to share information about what I play with my friends so we can find common ground, or something like that anyways, so I will write some of that here.

1: Legend of Zelda(LoZ) Tears Of The Kingdom(TOTK) As of now I have completed its prequel and am working on its prequel's prequel (Age Of Calamity(AOC)) as well

2: Minecraft I am not very experienced in survival mode but can still not die against mobs (usually), PVP is a different problem of its own tho. I am also working on a survival game on the infinite April Fools snapshot

3: Factorio, I like the space exploration mod and hate Biters

4: Craftomation 101, Automating the bots is fun

5: Hue, A fun puzzle game from Curve Games, I got it for free during the Curve Games Publisher Sale 2023 Also now has a new game from its dev with a bunch of content, in a free demo, yeah it's pretty nice

ok that should be enough for now comment if something is wrong or if you want to know more about how I play and stuff.

Test post

    This is the point where I actually start writing for myself so this is a test post for that. Cus I want to learn to write for myself and stuff. Ok, I think that's enough for this test post.