herkese merhaba
ilk hafta sonunda pythona ýsýnmaya basladim ozellikle
pyqt delphiden sonra en uygun devam sekli gibi geldi
bana tabi biraz cozebilirsek...
basit örnekler yapmaya basladým asagidaki kod hata
vermemesine ragmen form gelmiyor
hatam nerde acaba tesekkürler...............
BU kod ile buttona tiklayinca textlabel'de merhaba
dünya yazacak
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file
'form1.ui'
#
# Created: Paz Ara 9 03:06:26 2007
# by: The PyQt User Interface Compiler (pyuic)
3.17.3
#
# WARNING! All changes made in this file will be lost!
from qt import *
from form1 import *
import sys
if __name__ == "__main__":
app = QApplication(sys.argv)
f = Form1()
f.show()
app.setMainWidget(f)
class Form1(QDialog):
def __init__(self,parent = None,name = None,modal
= 0,fl = 0):
QDialog.__init__(self,parent,name,modal,fl)
if not name:
self.setName("Form1")
self.pushButton1 =
QPushButton(self,"pushButton1")
self.pushButton1.setGeometry(QRect(90,140,115,26))
self.textLabel1 = QLabel(self,"textLabel1")
self.textLabel1.setGeometry(QRect(230,150,71,20))
self.languageChange()
self.resize(QSize(600,480).expandedTo(self.minimumSizeHint()))
self.clearWState(Qt.WState_Polished)
self.connect(self.pushButton1,SIGNAL("clicked()"),self.newSlot)
def languageChange(self):
self.setCaption(self.__tr("Form1"))
self.pushButton1.setText(self.__tr("pushButton1"))
self.textLabel1.setText(self.__tr("textLabel1"))
def newSlot(self):
self.label.setText("MERHABA DÜNYA")
def __tr(self,s,c = None):
return qApp.translate("Form1",s,c)
________________________________________________________________________________\
____
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping