#!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.5 from "/home/ncq/Projekte/gm-git/gnumed/gnumed/client/wxg/wxg3ButtonQuestionDlg.wxg"

import wx

# begin wxGlade: extracode
# end wxGlade


class wxg3ButtonQuestionDlg(wx.Dialog):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxg3ButtonQuestionDlg.__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, "")
        self._BTN_2 = wx.Button(self, wx.ID_NO, "")
        self._BTN_3 = wx.Button(self, wx.ID_CANCEL, "")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self._on_BTN_1_pressed, self._BTN_1)
        self.Bind(wx.EVT_BUTTON, self._on_BTN_2_pressed, self._BTN_2)
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxg3ButtonQuestionDlg.__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."))
        self._BTN_1.SetDefault()
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxg3ButtonQuestionDlg.__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(self._BTN_1, 0, wx.RIGHT | wx.EXPAND | wx.ALIGN_CENTER_VERTICAL, 3)
        __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_buttons.Add(self._BTN_3, 0, 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: wxg3ButtonQuestionDlg.<event_handler>
        print "Event handler `_on_BTN_1_pressed' not implemented!"
        event.Skip()

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

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

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