python QT ile hava durumu

Başlatan beratyildirim, 15 Kasım 2015 - 11:43:20

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

beratyildirim

#-*- coding: cp1254 -*-
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from PyQt4.QtWebKit import *
import urllib.request


btngoster=QPushButton()
#btnileri.setObjectName(_fromUtf8("btngoster"))
btnileri.setText("göster")
txtBekleme=QTextEdit()
txtBekleme.setText()

def btngosterClicked():   
   url         = urllib.request
connection  = url.urlopen('http://www.mgm.gov.tr/tahmin/il-ve-ilceler.aspx?m=MERSIN')

content     = connection.read()
content     = content.decode('utf-8')
screen_rect = app.desktop().screenGeometry()   
    #width, height = screen_rect.width(), screen_rect.height()

table.resize(490, 95)   
table.setRowCount(1)
table.setColumnCount(4)
table.setColumnWidth(0,100);
    table.setColumnWidth(1,130);
    table.setColumnWidth(2,130);
    table.setRowHeight(0,60);
    table.setRowHeight(1,60);   

    table.horizontalHeader().setVisible(False)
    table.verticalHeader().setVisible(False)

    font = QFont("Arial", 12)
    table.setFont(font);

    table.setSpan(0,2,0,4)   

    btngoster.setGeometry(100,10, 100, 100)
   
    table.setCellWidget(0,2, btngoster)
 

    txtBekleme.setGeometry(100,10, 100, 100)
   
    table.setCellWidget(0,0, txtBekleme)
    QObject.connect(btngoster, SIGNAL("clicked()"), btngosterClicked)  ü
   
    table.show()


bu kodda hata nerede
   
   

-DıLgEş-

Hata çıktısını birlikte paylaşsaydınız daha iyi olurdu.  ???
Aşkın; gözü kör, kulağı sağır, dili tutuk, aklı kıttır..! Hayır yani bu halde nasıl herkesi madara ediyor onu çözemedim..