-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7b6cc9
commit eb92ec4
Showing
6 changed files
with
45 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from PySide6.QtGui import QDesktopServices | ||
from .action import Action | ||
|
||
|
||
class ImportFile(Action): | ||
"""Import a file into the viewer.""" | ||
|
||
def pressed_action(self): | ||
raise NotImplementedError("Importing files is not yet implemented.") | ||
|
||
|
||
class ExportFile(Action): | ||
"""Export a file from the viewer.""" | ||
|
||
def pressed_action(self): | ||
raise NotImplementedError("Exporting files is not yet implemented.") | ||
|
||
|
||
class OpenURL(Action): | ||
"""Open external url.""" | ||
|
||
def pressed_action(self, url: str): | ||
""" " | ||
Open external url. | ||
Parameters | ||
---------- | ||
url : str | ||
The url to open. | ||
See Also | ||
-------- | ||
:PySide6:`PySide6/QtGui/QDesktopServices` | ||
""" | ||
QDesktopServices.openUrl(url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters