#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
cornalyzer: correlation analyzer, study the relation between parameters

Author: Tong Zhang
Created: May. 27, 2015
"""

from ...utils import scanutils
from ...utils import miscutils
import wx
import wx.lib.mixins.inspection as wit

__version__ =  miscutils.AppVersions().getVersion('cornalyzer')
__author__  = "Tong Zhang"

class InspectApp(wx.App, wit.InspectionMixin):
    def OnInit(self):
        self.Init()
        myframe = scanutils.ScanAnalyzer(None, title = u'Cornalyzer \u2014 Another Correlation Analyzer', appversion = __version__, style = wx.DEFAULT_FRAME_STYLE)
        myframe.Show()
        self.SetTopWindow(myframe)
        return True

def run(maximize = True, logon = False, debug = True):
    """
    function to call cornalyzer
    """
    if debug == True:
        app = InspectApp()
        app.MainLoop()
    else:
        app = wx.App(redirect = logon, filename = 'log')
        if maximize == True:
            myframe = scanutils.ScanAnalyzer(None, title = u'Cornalyzer \u2014 Another Correlation Analyzer', appversion = __version__, style = wx.DEFAULT_FRAME_STYLE)
        else:
            myframe = scanutils.ScanAnalyzer(None, title = u'Cornalyzer \u2014 Another Correlation Analyzer', appversion = __version__, style = wx.DEFAULT_FRAME_STYLE & ~(wx.RESIZE_BORDER | wx.MAXIMIZE_BOX))
        myframe.Show()
        app.MainLoop()

if __name__ == '__main__':
    run()

@@ -185,25 +185,27 @@
  import 
-scanutils
+datascanapp
 %0Afrom ..
@@ -481,45 +481,74 @@
 e = 
-scanutils.ScanAnalyzer(None, t
+datascanapp.MainFrame(None, __version__)%0A        myframe.SetT
 itle
- = 
+(
 u'Co
@@ -555,39 +555,36 @@
 rnalyzer %5Cu2014 
-Another
+Data
  Correlation Ana
@@ -580,35 +580,69 @@
 elation Analyzer
-', 
+ (debug mode, CTRL+ALT+I)')%0A        #
 appversion = __v
@@ -698,32 +698,72 @@
  myframe.Show()%0A
+        myframe.SetMinSize((1024, 768))%0A
         self.Set
@@ -818,19 +818,17 @@
 maximize
- = 
+=
 True, lo
@@ -830,19 +830,17 @@
 e, logon
- = 
+=
 False, d
@@ -843,19 +843,17 @@
 e, debug
- = 
+=
 True):%0A 
@@ -1010,19 +1010,17 @@
 redirect
- = 
+=
 logon, f
@@ -1026,19 +1026,17 @@
 filename
- = 
+=
 'log')%0A 
@@ -1089,45 +1089,78 @@
 e = 
-scanutils.ScanAnalyzer(None, t
+datascanapp.MainFrame(None, __version__)%0A            myframe.SetT
 itle
- = 
+(
 u'Co
@@ -1167,39 +1167,36 @@
 rnalyzer %5Cu2014 
-Another
+Data
  Correlation Ana
@@ -1193,32 +1193,47 @@
 lation Analyzer'
+)%0A            #
 , appversion = _
@@ -1316,45 +1316,78 @@
 e = 
-scanutils.ScanAnalyzer(None, t
+datascanapp.MainFrame(None, __version__)%0A            myframe.SetT
 itle
- = 
+(
 u'Co
@@ -1406,15 +1406,12 @@
 014 
-Another
+Data
  Cor
@@ -1428,16 +1428,31 @@
 nalyzer'
+)%0A            #
 , appver
@@ -1558,32 +1558,72 @@
  myframe.Show()%0A
+        myframe.SetMinSize((1024, 768))%0A
         app.Main

replace with new fresh version