Mercurial > hg > Feedworm
annotate AddFeed.py @ 44:be990ac6e478
saving the preference "start maximized" from GUI implemented
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 14 May 2010 15:02:15 +0200 |
parents | bdd1296a4b8c |
children | 6eba4168fd54 |
rev | line source |
---|---|
27 | 1 |
2 from PyQt4 import QtGui | |
3 from Ui_AddFeed import Ui_AddFeed | |
4 | |
5 class AddFeed(QtGui.QDialog): | |
6 def __init__(self, session=None): | |
7 QtGui.QWidget.__init__(self, None) | |
8 self.session = session | |
9 self.ui = Ui_AddFeed() | |
10 self.ui.setupUi(self) | |
11 self.ui.url.setFocus() | |
12 | |
13 def getUrl(self): | |
14 text = self.ui.url.text() | |
15 # the content of a QLineEdit is a QString, convert it to a Python string | |
16 return str(text) |