#!/usr/bin/env python
# -*- coding: iso-8859-15 -*-
# generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-cvs/branches/HEAD/gnumed/gnumed/client/wxg/wxg2ButtonQuestionDlg.wxg"

import wx

# begin wxGlade: extracode
# end wxGlade



class wxg2ButtonQuestionDlg(wx.Dialog):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxg2ButtonQuestionDlg.__init__
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX|wx.THICK_FRAME|wx.STAY_ON_TOP
        wx.Dialog.__init__(self, *args, **kwds)
        self._LBL_question = wx.StaticText(self, -1, _("Put question here."))
        self._CHBOX_dont_ask_again = wx.CheckBox(self, -1, _("Remember and don't ask again."))
        self._BTN_1 = wx.Button(self, wx.ID_YES, _("Yes"))
        self._BTN_2 = wx.Button(self, wx.ID_NO, _("No"))

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_BTN_1_pressed, id=wx.ID_YES)
        self.Bind(wx.EVT_BUTTON, self._on_BTN_2_pressed, id=wx.ID_NO)
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxg2ButtonQuestionDlg.__set_properties
        self.SetTitle(_("Put caption here."))
        self._CHBOX_dont_ask_again.SetToolTipString(_("Check this if you want GNUmed to remember your decision and not ask you again."))
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxg2ButtonQuestionDlg.__do_layout
        __szr_main = wx.BoxSizer(wx.VERTICAL)
        __szr_buttons = wx.BoxSizer(wx.HORIZONTAL)
        __szr_main.Add(self._LBL_question, 1, wx.ALL|wx.EXPAND, 10)
        top_bottom_separator = wx.StaticLine(self, -1)
        __szr_main.Add(top_bottom_separator, 0, wx.LEFT|wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5)
        __szr_main.Add(self._CHBOX_dont_ask_again, 0, wx.LEFT|wx.RIGHT|wx.TOP|wx.ALIGN_CENTER_VERTICAL, 10)
        __szr_buttons.Add((20, 20), 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_buttons.Add(self._BTN_1, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 3)
        __szr_buttons.Add((20, 20), 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_buttons.Add(self._BTN_2, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_buttons.Add((20, 20), 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0)
        __szr_main.Add(__szr_buttons, 0, wx.ALL|wx.EXPAND, 10)
        self.SetSizer(__szr_main)
        __szr_main.Fit(self)
        self.Layout()
        self.Centre()
        # end wxGlade

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

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

# end of class wxg2ButtonQuestionDlg


if __name__ == "__main__":
    import gettext
    gettext.install("app") # replace with the appropriate catalog name

    app = wx.PySimpleApp(0)
    wx.InitAllImageHandlers()
    dialog_1 = wxg2ButtonQuestionDlg(None, -1, "")
    app.SetTopWindow(dialog_1)
    dialog_1.Show()
    app.MainLoop()
