Skip to content

Commit

Permalink
Comment some functions from the control player
Browse files Browse the repository at this point in the history
  • Loading branch information
UmSenhorQualquer committed Jan 31, 2019
1 parent 322a67c commit 67e0155
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyforms_gui/controls/control_player/control_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ def call_next_frame(self, update_slider=True, update_number=True, increment_fram


def __detach_player_evt(self):
"""
Called by the detach button
"""
self._old_layout = self.parentWidget().layout()
self._old_layout_index = self._old_layout.indexOf(self)
self._detach_win = QMainWindow(parent=self.parent)
Expand All @@ -345,6 +348,9 @@ def __detach_player_evt(self):
self._detach_win.show()

def __detach_win_closed_evt(self, event):
"""
Called when the detached window is closed
"""
self._old_layout.insertWidget(self._old_layout_index, self)
self.detach_btn.show()
self._detach_win.close()
Expand Down

0 comments on commit 67e0155

Please sign in to comment.