Skip to content

Commit

Permalink
dialog width fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel-martinr committed Jan 11, 2022
1 parent 906c62d commit 852a8a1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pycture/dialogs/rotate_simple_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,26 @@ class RotateSimpleDialog(QDialog):

def __init__(self, parent: QMainWindow, editors: List[str], angle_limit = 180):
super().__init__(parent, Qt.WindowType.Window)
self.setWindowTitle("Scale")
self.setWindowTitle("Rotate and Paint")
self.layout = QVBoxLayout()
self.layout.setSizeConstraint(QLayout.SetFixedSize)
self.setLayout(self.layout)
self.angle_limit = angle_limit

self.setup(editors)

self.show()



def setup(self, editors: List[str]):
layout = QVBoxLayout()
self.layout.addLayout(layout)

self.editors_dropdown = DropdownList(self, editors)
self.editors_dropdown.setMinimumWidth(250)
layout.addWidget(self.editors_dropdown)


label = QLabel("Angle:", self)
layout.addWidget(label)
Expand Down

0 comments on commit 852a8a1

Please sign in to comment.