Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions src/main/python/gui/signlevelinfospecification_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

from PyQt5.QtWidgets import (
QGroupBox,
QSpacerItem,
QScrollArea,
QWidget,
QLineEdit,
QDialog,
QFrame,
Expand Down Expand Up @@ -115,7 +116,7 @@ def keyPressEvent(self, event):
self.model().removeRow(itemindex.row())


class SignLevelInfoPanel(QFrame):
class SignLevelInfoPanel(QScrollArea):

def __init__(self, signlevelinfo, **kwargs):
super().__init__(**kwargs)
Expand Down Expand Up @@ -149,7 +150,7 @@ def create_and_set_pos_layout(self):
curr_row += 1

self.other_pos_lineedit = QLineEdit("Specify")
self.other_pos_lineedit.setMaximumHeight(25)
# self.other_pos_lineedit.setMaximumHeight(25)
thisbtn = self.pos_buttongrp.button(PARTS_OF_SPEECH["Other"])

self.other_pos_lineedit.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
Expand Down Expand Up @@ -214,8 +215,7 @@ def create_and_set_layout(self):
pos_label = QLabel('Part(s) of speech:')
self.pos_layout = self.create_and_set_pos_layout()
pos_widget = QGroupBox()
pos_widget.setMinimumHeight(110)
pos_widget.setMaximumHeight(150)
# pos_widget.setMaximumHeight(150)
pos_widget.setLayout(self.pos_layout)

handdominance_label = QLabel("Hand dominance:")
Expand Down Expand Up @@ -250,7 +250,11 @@ def create_and_set_layout(self):
main_layout.addRow(handdominance_label, self.handdominance_layout)
main_layout.addRow(pos_label, pos_widget)
self.set_value()
self.setLayout(main_layout)

scroll_widget = QWidget()
scroll_widget.setLayout(main_layout)

self.setWidget(scroll_widget)


def entryid_counter(self):
Expand Down