<filename>hydroffice/ssp_manager/userinputsviewer_ui.py
from __future__ import absolute_import, division, print_function, unicode_literals

import wx
import os
import logging

log = logging.getLogger(__name__)


class UserInputsViewerBase(wx.Frame):

    here = os.path.abspath(os.path.dirname(__file__))

    def __init__(self, *args, **kwds):
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        
        # Menu Bar
        self.UserInputsFrame_menubar = wx.MenuBar()
        self.SetMenuBar(self.UserInputsFrame_menubar)
        # Menu Bar end
        self.UserInputsFrame_statusbar = self.CreateStatusBar(2, 0)

        self.__set_properties()
        self.__do_layout()

    def __set_properties(self):
        favicon = wx.Icon(os.path.join(self.here, 'media', 'favicon.png'),
                          wx.BITMAP_TYPE_PNG, 32, 32)
        wx.Frame.SetIcon(self, favicon)

        if os.name == 'nt':
            try:
                # This is needed to display the app icon on the taskbar on Windows 7
                import ctypes
                app_id = 'SSP Manager - User Inputs Viewer'
                ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(app_id)
            except AttributeError as e:
                log.debug("Unable to change app icon: %s" % e)

        self.SetTitle("User Inputs Viewer")
        self.SetSize((600, 600))
        self.UserInputsFrame_statusbar.SetStatusWidths([-1, 400])
        # statusbar fields
        UserInputsViewerFrame_statusbar_fields = ["", ""]
        for i in range(len(UserInputsViewerFrame_statusbar_fields)):
            self.UserInputsFrame_statusbar.SetStatusText(UserInputsViewerFrame_statusbar_fields[i], i)

    def __do_layout(self):
        sizer_1 = wx.BoxSizer(wx.VERTICAL)
        self.SetSizer(sizer_1)
        self.Layout()
        self.SetSize((600, 600))

<filename>hydroffice/ssp_manager/userinputsviewer_ui.py
from __future__ import absolute_import, division, print_function, unicode_literals

import wx
import os
import logging

log = logging.getLogger(__name__)


class UserInputsViewerBase(wx.Frame):

    here = os.path.abspath(os.path.dirname(__file__))

    def __init__(self, *args, **kwds):
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        
        # Menu Bar
        self.UserInputsFrame_menubar = wx.MenuBar()
        self.SetMenuBar(self.UserInputsFrame_menubar)
        # Menu Bar end
        self.UserInputsFrame_statusbar = self.CreateStatusBar(2, 0)

        self.__set_properties()
        self.__do_layout()

    def __set_properties(self):
        favicon = wx.Icon(os.path.join(self.here, 'media', 'favicon.png'),
                          wx.BITMAP_TYPE_PNG, 32, 32)
        wx.Frame.SetIcon(self, favicon)

        if os.name == 'nt':
            try:
                # This is needed to display the app icon on the taskbar on Windows 7
                import ctypes
                app_id = 'SSP Manager - User Inputs Viewer'
                ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(app_id)
            except AttributeError as e:
                log.debug("Unable to change app icon: %s" % e)

        self.SetTitle("User Inputs Viewer")
        self.SetSize((600, 600))
        self.UserInputsFrame_statusbar.SetStatusWidths([-1, 400])
        # statusbar fields
        UserInputsViewerFrame_statusbar_fields = ["", ""]
        for i in range(len(UserInputsViewerFrame_statusbar_fields)):
            self.UserInputsFrame_statusbar.SetStatusText(UserInputsViewerFrame_statusbar_fields[i], i)

    def __do_layout(self):
        sizer_1 = wx.BoxSizer(wx.VERTICAL)
        self.SetSizer(sizer_1)
        self.Layout()
        self.SetSize((600, 600))

# Menu Bar # Menu Bar end # This is needed to display the app icon on the taskbar on Windows 7 # statusbar fields