mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
18 lines
504 B
Python
18 lines
504 B
Python
from .app import show
|
|
from .widgets import QtWidgets
|
|
|
|
|
|
class StandAlonePublishModule:
|
|
def __init__(self, main_parent=None, parent=None):
|
|
self.main_parent = main_parent
|
|
self.parent_widget = parent
|
|
|
|
def tray_menu(self, parent_menu):
|
|
self.run_action = QtWidgets.QAction(
|
|
"Publish", parent_menu
|
|
)
|
|
self.run_action.triggered.connect(self.show)
|
|
parent_menu.addAction(self.run_action)
|
|
|
|
def show(self):
|
|
show(self.main_parent, False)
|