Skip to content

Commit

Permalink
Update versions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CrystalVortex authored Apr 30, 2022
1 parent 903405c commit e7b23d7
Showing 1 changed file with 69 additions and 31 deletions.
100 changes: 69 additions & 31 deletions versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

from tkinter import *

import tkinter

from tkinter import ttk

from tkinter.ttk import *

import webbrowser
Expand All @@ -12,6 +16,7 @@

import logging


logger = logging.getLogger('Vlauncher')

handler = logging.FileHandler('VLauncher.log')
Expand All @@ -32,8 +37,6 @@

logger.warning('[LOG]:Window Name:Minecraft Version Launcher (512x512)')



new = 1
url1 = "https://download2344.mediafire.com/7lo7d4se8m0g/p5yxrsv39uvgdo0/Microsoft.MinecraftUWP_1.18.3004.0_x86__8wekyb3d8bbwe.Appx"

Expand All @@ -55,18 +58,6 @@
url7 = "https://download2329.mediafire.com/qxrgkl0b0gkg/tjsgntidc54rru4/Minecraft-1.18.31.4.Appx"


print("[LOG]:Versions loaded")
logger.warning('[LOG]:Versions loaded')


ws = Tk()

ws.title('Minecraft Version Launcher')

ws.geometry('512x512')



def openweb():
webbrowser.open(url1,new=new)
print("[LOG]:You clicked download 1.18.30 at:")
Expand Down Expand Up @@ -108,33 +99,81 @@ def openweb7():
webbrowser.open(url7,new=new)
print("[LOG]:You clicked download 1.18.31 at:")
print(datetime.datetime.now())
logger.warning('[LOG]:You clicked download 1.18.31')
logger.warning('[LOG]:You clicked download 1.18.31')

print("[LOG]:Versions loaded")
logger.warning('[LOG]:Versions loaded')

root = Tk()

root.title('Minecraft Version Launcher')

root.geometry('412x312')

main_frame= Frame(root)
main_frame.pack()

Btn = Button(ws, text = "Download 1.18.31 64 bit",command=openweb7)
Btn.pack()
a_canvas = Canvas(main_frame)
a_canvas.pack(side=LEFT, fill=BOTH, expand=1)

Btn = Button(ws, text = "Download 1.18.30 64 bit",command=openweb)
Btn.pack()
b_scrollbar = ttk.Scrollbar(main_frame, orient=VERTICAL, command=a_canvas.yview)
b_scrollbar.pack(side=RIGHT,fill=Y)

Btn = Button(ws, text = "Download 1.18.12 64 bit",command=openweb3)
Btn.pack()
a_canvas.configure(yscrollcommand=b_scrollbar.set)
a_canvas.bind('<Configure>', lambda e: a_canvas.configure(scrollregion= a_canvas.bbox("all")))

Btn = Button(ws, text = "Download 1.18.10 64 bit",command=openweb2)
Btn.pack()
second_frame = Frame(a_canvas)

Btn = Button(ws,text = "Download 1.18.2.3 64 bit",command=openweb4)
Btn.pack()
a_canvas.create_window((11,11), window=second_frame, anchor="nw")

Btn = Button(ws,text = "Download 1.18.1 64 bit",command=openweb5)
Btn.pack()

Btn = Button(ws,text= "Download 1.18 64 bit",command=openweb6)
Btn.pack()

Label(second_frame, text = 'Minecraft BE Version Launcher', font =(
'Verdana', 15)).pack(side = TOP, pady = 10)

root.title('Minecraft Version Launcher')

photo = PhotoImage(file = r"d.png")


Label(second_frame, text = '1.18.31', font =(
'Verdana', 15)).pack(side = TOP, pady = 10)

Button(second_frame, text = '1.18.31', command=openweb7, image = photo).pack(side = TOP)

Label(second_frame, text = '1.18.30', font =(
'Verdana', 15)).pack(side = TOP, pady = 10)

Button(second_frame, text = '', command=openweb, image = photo).pack(side = TOP)

Label(second_frame, text = '1.18.12', font =(
'Verdana', 15)).pack(side = TOP, pady = 10)

Button(second_frame, text = '', command=openweb3, image = photo).pack(side = TOP)

Label(second_frame, text = '1.18.10', font =(
'Verdana', 15)).pack(side = TOP, pady = 10)

Button(second_frame, text = '', command=openweb2, image = photo).pack(side = TOP)

Label(second_frame, text = '1.18.2.3', font =(
'Verdana', 15)).pack(side = TOP, pady = 10)

Button(second_frame, text = '', command=openweb4, image = photo).pack(side = TOP)

Label(second_frame, text = '1.18.1.2', font =(
'Verdana', 15)).pack(side = TOP, pady = 10)

Button(second_frame, text = '1.18.1.2', command=openweb5, image = photo).pack(side = TOP)

Label(second_frame, text = '1.18', font =(
'Verdana', 15)).pack(side = TOP, pady = 10)

Button(second_frame, text = '1.18', command=openweb6, image = photo).pack(side = TOP)

mainloop()


ws.mainloop()

print("[LOG]:Application closed!")

Expand All @@ -149,4 +188,3 @@ def openweb7():
input()

logger.warning('[LOG]:Application closed...')

0 comments on commit e7b23d7

Please sign in to comment.