#!/usr/bin/python
# coding=UTF-8
# -*- coding: utf-8 -*-
import qt
import gtk
import sys
print "Привет, мир!"
#!/usr/bin/python
from qt import *
a = QApplication(sys.argv)
hello = QLabel("Привет, мир!",None)
a.setMainWidget(hello)
hello.show()
a.exec_loop()
from qtk import *
from PyQt4 import QtGui
app = QtGui.QApplication(sys.argv)
ДАЛЬШЕ ИДЁТ САМ КОД НА QT#ifndef UNTITLEDF22722_H
#define UNTITLEDF22722_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QDialog>
#include <QtGui/QDialogButtonBox>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtWebKit/QWebView>
QT_BEGIN_NAMESPACE
class Ui_Example
{
public:
QDialogButtonBox *buttonBox;
QLabel *label;
QWebView *webView;
void setupUi(QDialog *Example)
{
if (Example->objectName().isEmpty())
Example->setObjectName(QString::fromUtf8("Example"));
Example->resize(805, 619);
Example->setCursor(QCursor(Qt::CrossCursor));
buttonBox = new QDialogButtonBox(Example);
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
buttonBox->setGeometry(QRect(430, 560, 341, 32));
buttonBox->setCursor(QCursor(Qt::CrossCursor));
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
label = new QLabel(Example);
label->setObjectName(QString::fromUtf8("label"));
label->setGeometry(QRect(30, 20, 491, 51));
QFont font;
font.setPointSize(26);
label->setFont(font);
label->setCursor(QCursor(Qt::UpArrowCursor));
webView = new QWebView(Example);
webView->setObjectName(QString::fromUtf8("webView"));
webView->setGeometry(QRect(60, 70, 681, 411));
webView->setUrl(QUrl("
http://m.yandex.ru/"));
retranslateUi(Example);
QObject::connect(buttonBox, SIGNAL(accepted()), Example, SLOT(accept()));
QObject::connect(buttonBox, SIGNAL(rejected()), Example, SLOT(reject()));
QMetaObject::connectSlotsByName(Example);
} // setupUi
void retranslateUi(QDialog *Example)
{
Example->setWindowTitle(QApplication::translate("Example", "Dialog", 0, QApplication::UnicodeUTF8));
label->setText(QApplication::translate("Example", "\320\222\321\213 \321\201\320\274\320\276\321\202\321\200\320\270\321\202\320\265 Yandex", 0, QApplication::UnicodeUTF8));
} // retranslateUi
};
namespace Ui {
class Example: public Ui_Example {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UNTITLEDF22722_H