コード例 #1
0
ファイル: FileTreeActions.py プロジェクト: Gatou/AGM3D
 def __init__(self):
     icon = None
     text = "Rename"
     widget = DockManager.DOCKS["AssetsDock"].ui.tree
     AbstractContextMenuAction.__init__(self, icon, text, widget)
     #---
     self.position = (200, 0)
コード例 #2
0
ファイル: FileTreeActions.py プロジェクト: Gatou/AGM3D
 def __init__(self):
     icon = IconManager.application_icon("explorer.png")
     text = "Show in Explorer"
     widget = DockManager.DOCKS["AssetsDock"].ui.tree
     AbstractContextMenuAction.__init__(self, icon, text, widget)
     #---
     self.position = (0, 100)
コード例 #3
0
 def __init__(self):
     icon = IconManager.application_icon("folder.png")
     text = "Folder"
     widget = DockManager.DOCKS["AssetsDock"].ui.tree
     AbstractContextMenuAction.__init__(self, icon, text, widget)
     #---
     self.path = "Create"
     self.position = (0, 0)
コード例 #4
0
 def __init__(self):
     icon = None
     text = "Python Script"
     widget = DockManager.DOCKS["AssetsDock"].ui.tree
     AbstractContextMenuAction.__init__(self, icon, text, widget)
     #---
     self.path = "Create"
     self.position = (100, 0)
コード例 #5
0
ファイル: FileTreeCreateActions.py プロジェクト: Gatou/AGM3D
 def __init__(self):
     icon = IconManager.application_icon("folder.png")
     text = "Folder"
     widget = DockManager.DOCKS["AssetsDock"].ui.tree
     AbstractContextMenuAction.__init__(self, icon, text, widget)
     #---
     self.path = "Create"
     self.position = (0, 0)
コード例 #6
0
ファイル: FileTreeCreateActions.py プロジェクト: Gatou/AGM3D
 def __init__(self):
     icon = None
     text = "Python Script"
     widget = DockManager.DOCKS["AssetsDock"].ui.tree
     AbstractContextMenuAction.__init__(self, icon, text, widget)
     #---
     self.path = "Create"
     self.position = (100, 0)
コード例 #7
0
ファイル: FileTreeActions.py プロジェクト: Gatou/AGM3D
 def __init__(self):
     icon = IconManager.application_icon("refresh.png")
     text = "Refresh"
     shortcut = "F5"
     widget = DockManager.DOCKS["AssetsDock"].ui.tree
     AbstractContextMenuAction.__init__(self, icon, text, widget, shortcut)
     self.setShortcutContext(Qt.ApplicationShortcut)
     #---
     #.shortcut = QShortcut("F5", self.widget, self.action_performed, Qt.WidgetShortcut)
     self.position = (300, 0)