SHARE
TWEET

Untitled

a guest May 19th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from tkinter import *
  2. import tkinter as tk
  3. from tkinter import ttk
  4. from PIL import Image, ImageTk
  5.  
  6. class Aplikacja(tk.Frame):
  7.  
  8.     def __init__(self, master=None):
  9.         tk.Frame.__init__(self, master)
  10.         self.pack(ipadx=375, ipady=350)
  11.  
  12.         self.PrzyciskOdbierz = tk.Button(self, text='Otworz', font=('Helvetica', '14'),bg="orange")
  13.         self.PrzyciskOdbierz.place(x=10, y=160, width=160, height=50)
  14.  
  15.  
  16.  
  17. root = tk.Tk()
  18. root.title("Marciniak")
  19.  
  20.  
  21. #jpgfile = Image.open(r"C:\Users\Mateusz\Pictures\avatar.jpg")
  22. #jpgfile = Image.open(open(r"C:\Users\Mateusz\Pictures\avatar.jpg", 'rb'))
  23. #photo = ImageTk.PhotoImage(jpgfile)
  24. #cv = tk.Canvas()
  25. #cv.pack(side='top', fill='both', expand='yes')
  26. #cv.create_image(10, 10, image=photo, anchor='nw')
  27. root.minsize(680, 420)
  28. root.maxsize(680, 420)
  29. root.geometry("680x420")
  30.  
  31. app = Aplikacja(master=root)
  32.  
  33. app.mainloop()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top