mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
added name and icon to window
This commit is contained in:
parent
d2bb8e2836
commit
ab35d00183
1 changed files with 6 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from Qt import QtWidgets, QtCore
|
||||
from Qt import QtWidgets, QtCore, QtGui
|
||||
|
||||
from . import (
|
||||
ProjectModel,
|
||||
|
|
@ -9,6 +9,7 @@ from . import (
|
|||
)
|
||||
from .style import load_stylesheet, ResourceCache
|
||||
|
||||
from openpype import resources
|
||||
from avalon.api import AvalonMongoDB
|
||||
|
||||
|
||||
|
|
@ -16,7 +17,8 @@ class Window(QtWidgets.QWidget):
|
|||
def __init__(self, parent=None):
|
||||
super(Window, self).__init__(parent)
|
||||
|
||||
dbcon = AvalonMongoDB()
|
||||
self.setWindowTitle("OpenPype Project Manager")
|
||||
self.setWindowIcon(QtGui.QIcon(resources.pype_icon_filepath()))
|
||||
|
||||
# Top part of window
|
||||
top_part_widget = QtWidgets.QWidget(self)
|
||||
|
|
@ -24,6 +26,8 @@ class Window(QtWidgets.QWidget):
|
|||
# Project selection
|
||||
project_widget = QtWidgets.QWidget(top_part_widget)
|
||||
|
||||
dbcon = AvalonMongoDB()
|
||||
|
||||
project_model = ProjectModel(dbcon)
|
||||
project_combobox = QtWidgets.QComboBox(project_widget)
|
||||
project_combobox.setModel(project_model)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue