CheckoutNumberDialog.py 2.05 KB
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.3 on Tue Sep 27 12:15:56 2011

import wx

# begin wxGlade: dependencies
# end wxGlade

# begin wxGlade: extracode

# end wxGlade

"""aktualnie nieużywane! """

class CheckoutNumberDialog(wx.Dialog):
    def __init__(self, *args, **kwds):
        # begin wxGlade: CheckoutNumberDialog.__init__
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE
        wx.Dialog.__init__(self, *args, **kwds)
        self.label_4 = wx.StaticText(self, -1, "checkout files: ")
        self.checkout_number = wx.SpinCtrl(self, -1, "1", min=1, max=300)
        self.button_4 = wx.Button(self, wx.ID_YES, "OK")
        self.button_5 = wx.Button(self, wx.ID_NO, "Cancel")

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.on_ok, id=wx.ID_YES)
        self.Bind(wx.EVT_BUTTON, self.on_cancel, id=wx.ID_NO)
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: CheckoutNumberDialog.__set_properties
        self.SetTitle("checkout")
        self.SetSize((193, 79))
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: CheckoutNumberDialog.__do_layout
        sizer_8 = wx.BoxSizer(wx.VERTICAL)
        grid_sizer_3 = wx.GridSizer(1, 2, 0, 0)
        grid_sizer_2 = wx.GridSizer(1, 2, 0, 0)
        grid_sizer_2.Add(self.label_4, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        grid_sizer_2.Add(self.checkout_number, 0, wx.ALIGN_CENTER_VERTICAL, 0)
        sizer_8.Add(grid_sizer_2, 1, 0, 0)
        grid_sizer_3.Add(self.button_4, 0, 0, 0)
        grid_sizer_3.Add(self.button_5, 0, 0, 0)
        sizer_8.Add(grid_sizer_3, 0, wx.BOTTOM, 0)
        self.SetSizer(sizer_8)
        self.Layout()
        self.Centre()
        # end wxGlade

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

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

# end of class CheckoutNumberDialog