Window creation: Difference between revisions

Content added Content deleted
Line 1,804: Line 1,804:
{{works with|Python|2.4 and 2.5}}
{{works with|Python|2.4 and 2.5}}


{{libheader|Tkinter}}
==={{libheader|Tkinter}}===
<lang python> import Tkinter
<lang python> import Tkinter
Line 1,810: Line 1,810:
w.mainloop()</lang>
w.mainloop()</lang>


{{libheader|wxPython}}
==={{libheader|wxPython}}===
<lang python> from wxPython.wx import *
<lang python> from wxPython.wx import *
Line 1,823: Line 1,823:
app.MainLoop()</lang>
app.MainLoop()</lang>


{{libheader|Pythonwin}}
==={{libheader|Pythonwin}}===
<lang python> import win32ui
<lang python> import win32ui
from pywin.mfc.dialog import Dialog
from pywin.mfc.dialog import Dialog
Line 1,830: Line 1,830:
d.CreateWindow()</lang>
d.CreateWindow()</lang>


{{libheader|PyGTK}}
==={{libheader|PyGTK}}===
<lang python> import gtk
<lang python> import gtk
Line 1,837: Line 1,837:
gtk.main()</lang>
gtk.main()</lang>


{{libheader|PyQT}}
==={{libheader|PyQT}}===
<lang python> from PyQt4.QtGui import *
<lang python> from PyQt4.QtGui import *