#coding: utf-8

import wx
import wx.lib.sized_controls as sc
import wx.lib.mixins.inspection as wit

class SaveWindow(sc.SizedFrame):
    def __init__(self, *args, **kwargs):
        super(SaveWindow, self).__init__(*args, **kwargs)

        paneControls = sc.SizedPanel(self.GetContentsPane())
        paneControls.SetSizerType('horizontal')
        
        self.lbExtension = wx.StaticText(paneControls, -1, "Choose the file extension")
        extensions = ["XLS - Microsoft Excel", "ODS - openofice.org"]
        self.choiceExtensions = wx.Choice(paneControls, -1, (85, 18), choices=extensions)

        paneButtons = sc.SizedPanel(self.GetContentsPane())
        paneButtons.SetSizerType('grid', {'cols': 2})
        paneButtons.SetSizerProps(halign='center')

        self.btSave = wx.Button(paneButtons, -1, "Save")      

        self.btNotSave = wx.Button(paneButtons, -1, "I don't want to save it")
        
        self.Show(True)
        self.Fit()

if __name__=='__main__':
    app = wit.InspectableApp()
    frame=SaveWindow(None, title='Save results')
    app.MainLoop()
