Simple windowed application: Difference between revisions

m
→‎{{header|Python}}: fixed libheaders
No edit summary
m (→‎{{header|Python}}: fixed libheaders)
Line 2,224:
Button(w, text="click me", command=update_label).pack()
w.mainloop()</lang>
===The same in OO manner===:
<lang python>#!/usr/bin/env python
from Tkinter import Button, Frame, Label, Pack
Line 2,247:
if __name__=="__main__":
ClickCounter().mainloop()</lang>
 
==={{libheader|PyQt}}===
<lang python>import sys
from qt import *
35

edits