KOpenWithDialog Class Reference
from PyKDE4.kio import *
Inherits: KDialog → QDialog → QWidget → QObject
Detailed Description
"Open With" dialog box.
- Note:
- To let the user choose an application and run it immediately,
use simpler KRun.displayOpenWithDialog().
- Author:
- David Faure <faure@kde.org>
Methods |
| __init__ (self, KUrl.List urls, QWidget parent=0) |
| __init__ (self, KUrl.List urls, QString text, QString value, QWidget parent=0) |
| __init__ (self, QString mimeType, QString value, QWidget parent=0) |
| __init__ (self, QWidget parent=0) |
| __init__ (self, KOpenWithDialog a0) |
| accept (self) |
| hideNoCloseOnExit (self) |
| hideRunInTerminal (self) |
KService.Ptr | service (self) |
| setSaveNewApplications (self, bool b) |
| slotHighlighted (self, QString _name, QString _exec) |
| slotSelected (self, QString _name, QString _exec) |
| slotTerminalToggled (self, bool a0) |
| slotTextChanged (self) |
QString | text (self) |
Method Documentation
__init__ |
( |
self, |
|
|
|
QWidget |
parent=0 |
|
) |
|
|
|
Reimplemented from QDialog.accept()
hideNoCloseOnExit |
( |
|
self ) |
|
Hide the "Do not &close when command exits" Checkbox
hideRunInTerminal |
( |
|
self ) |
|
Hide the "Run in &terminal" Checkbox
- Returns:
- the chosen service in the application tree
Can be null, if the user typed some text and didn't select a service.
setSaveNewApplications |
( |
self, |
|
|
|
bool |
b |
|
) |
|
|
|
Set whether a new .desktop file should be created if the user selects an
application for which no corresponding .desktop file can be found.
Regardless of this setting a new .desktop file may still be created if
the user has chosen to remember the file association.
The default is false: no .desktop files are created.
slotTerminalToggled |
( |
self, |
|
|
|
bool |
a0 |
|
) |
|
|
|
- Returns:
- the text the user entered