-
Notifications
You must be signed in to change notification settings - Fork 0
/
NewCategoryDialog
46 lines (38 loc) · 1.53 KB
/
NewCategoryDialog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.5 on Wed Feb 8 20:31:42 2012
import wx
# begin wxGlade: extracode
# end wxGlade
class NewCategoryDialog(wx.Dialog):
def __init__(self, *args, **kwds):
# begin wxGlade: NewCategoryDialog.__init__
kwds["style"] = wx.DEFAULT_DIALOG_STYLE
wx.Dialog.__init__(self, *args, **kwds)
self.label_2 = wx.StaticText(self, -1, "Category name:")
self.CategoryName = wx.TextCtrl(self, -1, "")
self.CancelButton = wx.Button(self, wx.ID_CANCEL, "")
self.AddButton = wx.Button(self, wx.ID_ADD, "")
self.__set_properties()
self.__do_layout()
# end wxGlade
def __set_properties(self):
# begin wxGlade: NewCategoryDialog.__set_properties
self.SetTitle("Create a new category")
self.SetSize((300, 80))
# end wxGlade
def __do_layout(self):
# begin wxGlade: NewCategoryDialog.__do_layout
sizer_1 = wx.BoxSizer(wx.VERTICAL)
sizer_3 = wx.BoxSizer(wx.HORIZONTAL)
sizer_2 = wx.BoxSizer(wx.HORIZONTAL)
sizer_2.Add(self.label_2, 0, wx.LEFT | wx.TOP, 12)
sizer_2.Add(self.CategoryName, 3, wx.RIGHT | wx.TOP | wx.BOTTOM, 8)
sizer_1.Add(sizer_2, 1, wx.EXPAND, 0)
sizer_3.Add(self.CancelButton, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
sizer_3.Add(self.AddButton, 0, 0, 0)
sizer_1.Add(sizer_3, 1, wx.ALIGN_RIGHT, 0)
self.SetSizer(sizer_1)
self.Layout()
# end wxGlade
# end of class NewCategoryDialog