This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #a tkinter window | |
| from tkinter import * | |
| import tkinter | |
| root=Tk() | |
| root.mainloop() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import subprocess as sp | |
| import tkinter | |
| from tkinter import * | |
| def execut(): | |
| meter=input("how many to count: ") | |
| script=open("meter.py","w") | |
| script.write(f"""i=0 | |
| for i in range({meter}): | |
| print(i) | |
| """) |