Skip to content

Instantly share code, notes, and snippets.

@shimano-zd
shimano-zd / prosti broj.py
Created December 8, 2017 08:26
python window
import tkinter as tk
class Example(tk.Frame):
def __init__(self, parent):
tk.Frame.__init__(self, parent)
# create a prompt, an input box, an output label,
# and a button to do the computation
self.prompt = tk.Label(self, text="Unesite neki broj: \n Klikom na 'Provjeri' program će \n provjeriti je li prost", anchor="w")
self.entry = tk.Entry(self)