from core.config import Config

import wx

from gui.MainWindow import MainWindow

class OutWiker(wx.App):
	def __init__(self, *args, **kwds):
		wx.App.__init__ (self, *args, **kwds)

		self._configFileName = u"outwiker.ini"
		self.config = Config(self._configFileName)

	
	def getConfig (self):
		return self.config


	def OnInit(self):
		wx.InitAllImageHandlers()
		mainWnd = MainWindow(None, -1, "")
		self.SetTopWindow(mainWnd)
		mainWnd.Show()
		return 1

# end of class OutWiker

if __name__ == "__main__":
	outwiker = OutWiker(0)
	outwiker.MainLoop()
