def buttonbox(self):
        posx = 10
        buttonHeight = 40
        buttonwidth = 200
        w = Button()
        w.Text = "保存"
        w.Location = Point(posx, self.Posy)
        w.Size = Size(buttonwidth, buttonHeight)
        w.ForeColor = Color.Blue
        w.Click += self.ok
        w.Parent = self

        posx = w.Right + 20
        w1 = Button()
        w1.Text = "退出"
        w1.Location = Point(posx, self.Posy)
        w1.Size = Size(buttonwidth, buttonHeight)
        w1.ForeColor = Color.Blue
        w1.Click += self.cancel
        w1.Parent = self
        self.Posy = w1.Bottom
    def buttonbox(self):
        splitPadsize = 20
        buttonHeight = 40
        buttonwidth = 200

        Width_pad = self.ClientSize.Width - splitPadsize * 2 - buttonwidth * 3
        Width_pad /= 2
        posx = Width_pad

        w = Button()
        w.Text = "刷新余额数据"
        w.Location = Point(posx, self.Posy)
        w.Height = buttonHeight
        w.Width = buttonwidth
        w.ForeColor = Color.Blue
        w.Click += self.刷新余额数据
        w.Parent = self

        posx += buttonwidth + splitPadsize
        w1 = Button()
        w1.Text = "刷新筛选结果"
        w1.Location = Point(posx, self.Posy)
        w1.Height = buttonHeight
        w1.Width = buttonwidth
        w1.ForeColor = Color.Blue
        w1.Click += self.刷新筛选结果
        w1.Parent = self

        posx += buttonwidth + splitPadsize

        w2 = Button()
        w2.Text = "退出系统"
        w2.Location = Point(posx, self.Posy)
        w2.Height = buttonHeight
        w2.Width = buttonwidth
        w2.ForeColor = Color.Blue
        w2.Click += self.退出系统
        w2.Parent = self

        self.Posy += buttonHeight