started branch that has a GUI interface vs text console has base window
This commit is contained in:
parent
2d42f090dd
commit
c6cd1c0b99
129 changed files with 1201 additions and 0 deletions
|
|
@ -1,11 +1,13 @@
|
|||
#please use python 3.11
|
||||
import socket
|
||||
import struct
|
||||
import tkinter.ttk
|
||||
import serial
|
||||
import time
|
||||
import platform
|
||||
import sys
|
||||
from enum import Enum
|
||||
import tkinter
|
||||
from GAME_METHODS import *
|
||||
|
||||
##check if python 3.11 is running code and exit if not
|
||||
|
|
@ -13,6 +15,19 @@ from GAME_METHODS import *
|
|||
if not(sys.version_info[0] == 3 and sys.version_info[1] == 11):
|
||||
raise Exception("code must be run in python verion 3.11.\ninput struct for network needs to be changed per python version.")
|
||||
|
||||
##GUI init
|
||||
rootFrameGui= tkinter.Tk()
|
||||
rootFrameGui.title("Car speed to arduino")
|
||||
rootFrameGui.geometry("400x200")
|
||||
|
||||
# theme: https://github.com/rdbende/Azure-ttk-theme
|
||||
rootFrameGui.tk.call("source","azure.tcl") ##import theme
|
||||
rootFrameGui.tk.call("set_theme","dark") ##set theme to dark
|
||||
|
||||
firstFrameGui=tkinter.ttk.Frame(rootFrameGui,padding=10)
|
||||
|
||||
|
||||
##system init
|
||||
runningOs = platform.system()
|
||||
|
||||
UDP_IP = "127.0.0.1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue