# -*- coding: utf-8 -*-
import sys
from PyQt4 import QtCore, QtGui
class MyWindow():
def __init__(self, parent=None):
.__init__(self,parent )
("weather")
(1000, 200)
girdLayout = ()
#hashtag
str ="weather"
label1 = (str)
( label1, 0, 0)
#buttons
button1 = ('button1')
( button1 , 0, 1)
#TextBar
textFile = ()
( textFile, 0, 2 )
# Password strips
passwordFile = ()
( )
( passwordFile, 1, 2)
# Edit box
textArea = ()
(textArea , 2, 2 )
# Radio & checkboxes
self.radio1 = ('radio1')
self.radio2 = ('radio2')
self.radio3 = ('radio3')
( self.radio1 , 3 ,0)
( self.radio2 , 3 ,1)
( self.radio3 , 3 ,2)
checkbox1 = ('checkbox1')
checkbox2 = ('checkbox2')
checkbox3 = ('checkbox2')
( checkbox1 , 4, 0)
( checkbox2 , 4, 1)
( checkbox3 , 4, 2)
= ('ok')
( , 5 , 0)
( ,('clicked()'), )
( girdLayout)
def OnButton(self ):
if self.():
self.('haha')
app = ( )
mywindow = MyWindow()
()
app.exec_()