#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# generated by wxGlade 0.5 on Thu Aug 30 16:35:38 2007 from C:\Documents and Settings\Nico\Bureau\options_wxgeometrie.wxg

import wx



class OptionsFrame(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: OptionsFrame.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.notebook_options = wx.Notebook(self, -1, style=0)
        self.panel_modules = wx.Panel(self.notebook_options, -1)
        self.panel_sauvegardes = wx.Panel(self.notebook_options, -1)
        self.panel_general = wx.Panel(self.notebook_options, -1)
        self.sizer_ouverture_staticbox = wx.StaticBox(self.panel_sauvegardes, -1, "Ouverture")
        self.sizer_enregistrement_staticbox = wx.StaticBox(self.panel_sauvegardes, -1, "Enregistrement")
        self.sizer_export_staticbox = wx.StaticBox(self.panel_sauvegardes, -1, "Export")
        self.sizer_2_staticbox = wx.StaticBox(self.panel_modules, -1, u"Modules détectés")
        self.sizer_3_staticbox = wx.StaticBox(self.panel_modules, -1, u"Editer les propriétés d'un module")
        self.sizer_ferm_staticbox = wx.StaticBox(self.panel_general, -1, "A la fermeture")
        self.label_4 = wx.StaticText(self.panel_general, -1, u"Dimensions de la fenêtre (en pixels) :")
        self.text_ctrl_2 = wx.TextCtrl(self.panel_general, -1, "850", style=wx.TE_CENTRE)
        self.label_5 = wx.StaticText(self.panel_general, -1, "X")
        self.text_ctrl_3 = wx.TextCtrl(self.panel_general, -1, "580", style=wx.TE_CENTRE)
        self.label_6 = wx.StaticText(self.panel_general, -1, "Nombre maximal d'annulations :")
        self.spin_ctrl_2 = wx.SpinCtrl(self.panel_general, -1, "50", min=0, max=1000)
        self.checkbox_1 = wx.CheckBox(self.panel_general, -1, "Demander une confirmation avant de quitter")
        self.checkbox_8 = wx.CheckBox(self.panel_general, -1, u"Sauvegarder les préférences")
        self.checkbox_9 = wx.CheckBox(self.panel_general, -1, "Sauvegarder les messages dans un fichier .log")
        self.button_3_copy_1 = wx.Button(self.panel_general, -1, "OK")
        self.button_4_copy_1 = wx.Button(self.panel_general, -1, "Appliquer")
        self.button_5_copy_1 = wx.Button(self.panel_general, -1, "Annuler")
        self.panel_affichage = wx.Panel(self.notebook_options, -1)
        self.panel_objets = wx.Panel(self.notebook_options, -1)
        self.label_1_copy = wx.StaticText(self.panel_sauvegardes, -1, u"Répertoire par défaut")
        self.text_ctrl_1_copy = wx.TextCtrl(self.panel_sauvegardes, -1, "")
        self.button_2_copy = wx.Button(self.panel_sauvegardes, -1, "Parcourir")
        self.label_1 = wx.StaticText(self.panel_sauvegardes, -1, u"Répertoire par défaut")
        self.text_ctrl_1 = wx.TextCtrl(self.panel_sauvegardes, -1, "")
        self.button_2 = wx.Button(self.panel_sauvegardes, -1, "Parcourir")
        self.label_1_copy_1 = wx.StaticText(self.panel_sauvegardes, -1, u"Répertoire par défaut")
        self.text_ctrl_1_copy_1 = wx.TextCtrl(self.panel_sauvegardes, -1, "")
        self.button_2_copy_1 = wx.Button(self.panel_sauvegardes, -1, "Parcourir")
        self.label_2 = wx.StaticText(self.panel_sauvegardes, -1, u"Résolution des images PNG (dpi)")
        self.spin_ctrl_1 = wx.SpinCtrl(self.panel_sauvegardes, -1, "200", min=50, max=1000)
        self.button_3 = wx.Button(self.panel_sauvegardes, -1, "OK")
        self.button_4 = wx.Button(self.panel_sauvegardes, -1, "Appliquer")
        self.button_5 = wx.Button(self.panel_sauvegardes, -1, "Annuler")
        self.checkbox_7 = wx.CheckBox(self.panel_modules, -1, u"géométrie dynamique")
        self.checkbox_2 = wx.CheckBox(self.panel_modules, -1, u"traçeur de courbes")
        self.checkbox_3 = wx.CheckBox(self.panel_modules, -1, "statistiques")
        self.checkbox_4 = wx.CheckBox(self.panel_modules, -1, u"probabilités")
        self.checkbox_5 = wx.CheckBox(self.panel_modules, -1, "surfaces")
        self.checkbox_6 = wx.CheckBox(self.panel_modules, -1, "calculatrice")
        self.label_3 = wx.StaticText(self.panel_modules, -1, u"Modules éditables :")
        self.choice_1 = wx.Choice(self.panel_modules, -1, choices=[u"Géométrie dynamique", u"Traçeur de courbes", "Surfaces", "Calculatrice"])
        self.button_1 = wx.Button(self.panel_modules, -1, "Editer")
        self.button_3_copy = wx.Button(self.panel_modules, -1, "OK")
        self.button_4_copy = wx.Button(self.panel_modules, -1, "Appliquer")
        self.button_5_copy = wx.Button(self.panel_modules, -1, "Annuler")
        self.panel_divers = wx.Panel(self.notebook_options, -1)
        self.panel_avance = wx.Panel(self.notebook_options, -1)

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_CHECKBOX, self.OnCheckbox3, self.checkbox_3)
        self.Bind(wx.EVT_BUTTON, self.EditerProprietesModule, self.button_1)
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: OptionsFrame.__set_properties
        self.SetTitle(u"Préférences")
        self.SetSize((500, 400))
        self.checkbox_1.SetValue(1)
        self.checkbox_8.SetValue(1)
        self.checkbox_9.SetValue(1)
        self.text_ctrl_1_copy.SetMinSize((200, -1))
        self.text_ctrl_1.SetMinSize((200, -1))
        self.text_ctrl_1_copy_1.SetMinSize((200, -1))
        self.checkbox_7.SetValue(1)
        self.checkbox_2.SetValue(1)
        self.choice_1.SetSelection(0)
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: OptionsFrame.__do_layout
        sizer_principal = wx.BoxSizer(wx.VERTICAL)
        modules_sizer_1 = wx.BoxSizer(wx.VERTICAL)
        sizer_boutons_copy = wx.BoxSizer(wx.HORIZONTAL)
        sizer_3 = wx.StaticBoxSizer(self.sizer_3_staticbox, wx.HORIZONTAL)
        sizer_2 = wx.StaticBoxSizer(self.sizer_2_staticbox, wx.VERTICAL)
        sizer_sauvegardes = wx.BoxSizer(wx.VERTICAL)
        sizer_boutons = wx.BoxSizer(wx.HORIZONTAL)
        sizer_export = wx.StaticBoxSizer(self.sizer_export_staticbox, wx.VERTICAL)
        sizer_dpi_png = wx.BoxSizer(wx.HORIZONTAL)
        sizer_rep_export = wx.BoxSizer(wx.HORIZONTAL)
        sizer_enregistrement = wx.StaticBoxSizer(self.sizer_enregistrement_staticbox, wx.VERTICAL)
        sizer_rep_enregistrement = wx.BoxSizer(wx.HORIZONTAL)
        sizer_ouverture = wx.StaticBoxSizer(self.sizer_ouverture_staticbox, wx.VERTICAL)
        sizer_rep_ouv = wx.BoxSizer(wx.HORIZONTAL)
        sizer_pan_general = wx.BoxSizer(wx.VERTICAL)
        sizer_boutons_gen = wx.BoxSizer(wx.HORIZONTAL)
        sizer_ferm = wx.StaticBoxSizer(self.sizer_ferm_staticbox, wx.VERTICAL)
        sizer_annul = wx.BoxSizer(wx.HORIZONTAL)
        sizer_dim = wx.BoxSizer(wx.HORIZONTAL)
        sizer_dim.Add(self.label_4, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_dim.Add(self.text_ctrl_2, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_dim.Add(self.label_5, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_dim.Add(self.text_ctrl_3, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_pan_general.Add(sizer_dim, 1, wx.ALL|wx.EXPAND, 5)
        sizer_annul.Add(self.label_6, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_annul.Add(self.spin_ctrl_2, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_pan_general.Add(sizer_annul, 1, wx.ALL|wx.EXPAND, 5)
        sizer_ferm.Add(self.checkbox_1, 0, wx.ALL, 5)
        sizer_ferm.Add(self.checkbox_8, 0, wx.ALL, 5)
        sizer_ferm.Add(self.checkbox_9, 0, wx.ALL, 5)
        sizer_pan_general.Add(sizer_ferm, 1, wx.ALL|wx.EXPAND, 5)
        sizer_boutons_gen.Add(self.button_3_copy_1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_boutons_gen.Add(self.button_4_copy_1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_boutons_gen.Add(self.button_5_copy_1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_pan_general.Add(sizer_boutons_gen, 1, wx.ALL, 8)
        self.panel_general.SetSizer(sizer_pan_general)
        sizer_rep_ouv.Add(self.label_1_copy, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_rep_ouv.Add(self.text_ctrl_1_copy, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_rep_ouv.Add(self.button_2_copy, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_ouverture.Add(sizer_rep_ouv, 1, wx.ALL|wx.EXPAND, 6)
        sizer_sauvegardes.Add(sizer_ouverture, 1, wx.ALL|wx.EXPAND, 8)
        sizer_rep_enregistrement.Add(self.label_1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_rep_enregistrement.Add(self.text_ctrl_1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_rep_enregistrement.Add(self.button_2, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_enregistrement.Add(sizer_rep_enregistrement, 1, wx.ALL, 6)
        sizer_sauvegardes.Add(sizer_enregistrement, 1, wx.ALL|wx.EXPAND, 8)
        sizer_rep_export.Add(self.label_1_copy_1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_rep_export.Add(self.text_ctrl_1_copy_1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_rep_export.Add(self.button_2_copy_1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_export.Add(sizer_rep_export, 1, wx.ALL, 6)
        sizer_dpi_png.Add(self.label_2, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_dpi_png.Add(self.spin_ctrl_1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_export.Add(sizer_dpi_png, 1, wx.ALL, 6)
        sizer_sauvegardes.Add(sizer_export, 1, wx.ALL|wx.EXPAND, 8)
        sizer_boutons.Add(self.button_3, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_boutons.Add(self.button_4, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_boutons.Add(self.button_5, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_sauvegardes.Add(sizer_boutons, 1, wx.ALL, 8)
        self.panel_sauvegardes.SetSizer(sizer_sauvegardes)
        sizer_2.Add(self.checkbox_7, 0, wx.ALL, 5)
        sizer_2.Add(self.checkbox_2, 0, wx.ALL, 5)
        sizer_2.Add(self.checkbox_3, 0, wx.ALL, 5)
        sizer_2.Add(self.checkbox_4, 0, wx.ALL, 5)
        sizer_2.Add(self.checkbox_5, 0, wx.ALL, 5)
        sizer_2.Add(self.checkbox_6, 0, wx.ALL, 5)
        modules_sizer_1.Add(sizer_2, 1, wx.ALL|wx.EXPAND, 5)
        sizer_3.Add(self.label_3, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_3.Add(self.choice_1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 10)
        sizer_3.Add(self.button_1, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        modules_sizer_1.Add(sizer_3, 1, wx.EXPAND, 0)
        sizer_boutons_copy.Add(self.button_3_copy, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_boutons_copy.Add(self.button_4_copy, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        sizer_boutons_copy.Add(self.button_5_copy, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5)
        modules_sizer_1.Add(sizer_boutons_copy, 1, wx.ALL, 8)
        self.panel_modules.SetSizer(modules_sizer_1)
        self.notebook_options.AddPage(self.panel_general, u"Général")
        self.notebook_options.AddPage(self.panel_affichage, "Affichage")
        self.notebook_options.AddPage(self.panel_objets, "Objets")
        self.notebook_options.AddPage(self.panel_sauvegardes, "Sauvegardes")
        self.notebook_options.AddPage(self.panel_modules, "Modules")
        self.notebook_options.AddPage(self.panel_divers, "Divers")
        self.notebook_options.AddPage(self.panel_avance, u"Avancé")
        sizer_principal.Add(self.notebook_options, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_principal)
        self.Layout()
        # end wxGlade

    def OnCheckbox3(self, event): # wxGlade: OptionsFrame.<event_handler>
        print "Event handler `OnCheckbox3' not implemented"
        event.Skip()

    def EditerProprietesModule(self, event): # wxGlade: OptionsFrame.<event_handler>
        print "Event handler `EditerProprietesModule' not implemented"
        event.Skip()

# end of class OptionsFrame


if __name__ == "__main__":
    app = wx.PySimpleApp(0)
    wx.InitAllImageHandlers()
    frame_1 = OptionsFrame(None, -1, "")
    app.SetTopWindow(frame_1)
    frame_1.Show()
    app.MainLoop()
