Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
frmMain.py -- make editor windows modal
Browse files Browse the repository at this point in the history
property_editor_backend.py -- make headers of property editor visible to enable column resizing

addressing issues in Issue #87
  • Loading branch information
PaulDudaRESPEC committed Jul 31, 2019
1 parent fd4afaf commit e680810
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ui/frmMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1875,6 +1875,7 @@ def show_edit_window(self, window):
# window.destroyed.connect(lambda s, e, a: self._forms.remove(s))
# window.destroyed = lambda s, e, a: self._forms.remove(s)
# window.connect(window, QtCore.SIGNAL('triggered()'), self.editor_closing)
window.setWindowModality(QtCore.Qt.ApplicationModal)
window.show()

# def editor_closing(self, event):
Expand Down
5 changes: 4 additions & 1 deletion src/ui/property_editor_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ def set_from(self, edit_these, new_item):
self.new_item = new_item
if edit_these:
self.meta = edit_these[0].metadata
self.table.horizontalHeader().hide()
# self.table.horizontalHeader().hide()
self.table.setColumnCount(len(edit_these))
listofblanks = [''] * len(edit_these)
self.table.setHorizontalHeaderLabels(listofblanks)
self.table.horizontalHeader().setFixedHeight(5)
self.table.setRowCount(len(self.meta))
self.table.setVerticalHeaderLabels(self.meta.labels())
column = 0
Expand Down

0 comments on commit e680810

Please sign in to comment.