KNameAndUrlInputDialog Class Reference
from PyKDE4.kio import *
Inherits: KDialog → QDialog → QWidget → QObject
Detailed Description
Dialog to ask for a name (e.g. filename) and a URL
Basically a merge of KLineEditDlg and KUrlRequesterDlg ;)
- Since:
-  4.5
- Author:
-  David Faure <faure@kde.org> 
Method Documentation
| __init__ | ( | self, |  | 
|  |  | QString | nameLabel, | 
|  |  | QString | urlLabel, | 
|  |  | KUrl | startDir, | 
|  |  | QWidget | parent | 
|  | ) |  |  |  | 
 
- Parameters:
- 
|  | nameLabel | label for the name field |  |  | urlLabel | label for the URL requester |  |  | startDir | start directory for the URL requester (optional) |  |  | parent | parent widget |  
 
 
- Returns:
-  the name the user entered
Empty if the dialog was cancelled.
 
| setSuggestedName | ( | self, |  | 
|  |  | QString | name | 
|  | ) |  |  |  | 
 
Pre-fill the name lineedit.
 
| setSuggestedUrl | ( | self, |  | 
|  |  | KUrl | url | 
|  | ) |  |  |  | 
 
Pre-fill the URL requester.
 
- Returns:
-  the URL the user entered
Empty if the dialog was cancelled.