-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.py
executable file
·32 lines (26 loc) · 882 Bytes
/
start.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from tkinter import *
import os
from threading import Thread
def main():
master = Tk()
master.title("Multi Projection")
master.geometry('200x200')
server = Button(master, text = "Lunch Server", width = 20)
server.pack(pady=10)
sender = Button(master, text = "Lunch Sender", width = 20)
sender.pack(pady=10)
project = Button(master, text = "Lunch Projection", width = 20)
project.pack(pady=10)
server.config(command = srv)
sender.config(command = snd)
project.config(command = pjt)
close = Button(master, text = "Close", command = master.destroy, width = 20)
close.pack(pady=10)
master.mainloop()
def srv():
Thread(target = os.system, args = ("python3 cute_server.py",)).start()
def snd():
Thread(target = os.system, args = ("python3 naughty_server.py",)).start()
def pjt():
Thread(target = os.system, args = ("python3 little_client.py",)).start()
main()