Started software

This commit is contained in:
Lucas 2023-08-04 11:26:59 +02:00
parent 879a92b74c
commit 568bfd9462
4 changed files with 22 additions and 2 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
data/
data/
.idea

BIN
assets/logo.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -76,5 +76,5 @@ with mouse_listener, keyboard_listener:
print('record fini')
json_macroEvents = json.dumps(macroEvents, indent=4)
with open(os.path.join("C:/Users/Lucas/Desktop/rien/data", macroName+".json"),"w") as macroRecord:
with open(os.path.join("C:/Users/lucas/OneDrive/Bureau/projet/data", macroName+".json"), "w") as macroRecord:
macroRecord.write(json_macroEvents)

19
software.py Normal file
View File

@ -0,0 +1,19 @@
from tkinter import *
window = Tk()
window.title("MacroRecorder")
window.geometry("500x200")
window.iconbitmap("assets/logo.ico")
my_menu = Menu(window)
window.config(menu=my_menu)
def cmd():
print('command')
file_menu = Menu(my_menu,tearoff=0)
my_menu.add_cascade(label="File", menu=file_menu)
file_menu.add_command(label="New...", command=cmd)
file_menu.add_command(label="Exit", command=window.quit)
window.mainloop()