Skip to content

Commit

Permalink
[refactor] all the classes earlier in odemis.gui.comp.stream.py have…
Browse files Browse the repository at this point in the history
… been split into individual python files.

The stream file has been split into stream_bar and stream_panel files. The fastem specific code unrelated to the stream has also been sperated.
  • Loading branch information
nandishjpatel committed Jan 19, 2024
1 parent 3c8472e commit e22dd7d
Show file tree
Hide file tree
Showing 8 changed files with 1,009 additions and 904 deletions.
33 changes: 33 additions & 0 deletions src/odemis/gui/comp/_constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
"""
:author: Rinze de Laat <laat@delmic.com>
:copyright: © 2012-2021 Rinze de Laat, Philip Winkler, Delmic
This file is part of Odemis.
.. license::
Odemis is free software: you can redistribute it and/or modify it under the terms of the GNU
General Public License version 2 as published by the Free Software Foundation.
Odemis is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along with Odemis. If not,
see http://www.gnu.org/licenses/.
This module contains classes needed to construct stream panels.
Stream panels are custom, specialized controls that allow the user to view and manipulate various
data streams coming from the microscope.
"""

import wx.lib.newevent

# Used by StreamPanel and StreamBar
stream_remove_event, EVT_STREAM_REMOVE = wx.lib.newevent.NewEvent()

# Used by FastEMProjectPanelHeader and StreamPanelHeader
CAPTION_PADDING_RIGHT = 5
ICON_WIDTH, ICON_HEIGHT = 16, 16
Loading

0 comments on commit e22dd7d

Please sign in to comment.