Advertisement
g96

Untitled

g96
Feb 10th, 2022
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.74 KB | None | 0 0
  1. from tkinter import *
  2. from tkinter import  ttk as ttk
  3. from tkinter import messagebox
  4. import os
  5. screen = Tk()
  6. def run():
  7.         mylabel = Label(screen,text ='Loading')
  8.         mylabel.pack()
  9.         os.system('clean.py')
  10.         os.system('get_attachments.py')
  11.         os.system('rename.py')
  12.         messagebox.showinfo('Info','Process has finished, check the Report file!')
  13.  
  14. screen.title("Auto PB report")
  15. screen.geometry("300x320")
  16. instruction = Label(text='Click "Run"', fg = 'black',)
  17. instruction.pack()
  18. click_me = Button(text = 'Run', fg ='black', bg = 'light gray', command = run)
  19. click_me.place(x=130, y= 280)
  20. photo1 = PhotoImage(file ='Logo-Small.png')
  21. Label (screen,image=photo1, bg='azure').place(x=40,y=50)
  22.  
  23. screen.mainloop()
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement