#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
#
# generated by wxGlade
#

import wx

# begin wxGlade: dependencies
# end wxGlade

# begin wxGlade: extracode
# end wxGlade


class MyDialog(wx.Dialog):
    def __init__(self, *args, **kwds):
        # begin wxGlade: MyDialog.__init__
        kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER
        wx.Dialog.__init__(self, *args, **kwds)
        self.SetSize((600, 320))
        self.SetTitle("dialog")

        self.colour_settings_sizer = wx.StaticBoxSizer(wx.StaticBox(self, wx.ID_ANY, "Colour Settings"), wx.HORIZONTAL)

        inner_sizer = wx.StaticBoxSizer(wx.StaticBox(self.colour_settings_sizer.GetStaticBox(), wx.ID_ANY, "Inner"), wx.VERTICAL)
        self.colour_settings_sizer.Add(inner_sizer, 0, wx.ALL, 36)

        self.bitmap_button_1 = wx.BitmapButton(inner_sizer.GetStaticBox(), wx.ID_ANY, wx.Bitmap("preferences-color-icon.png", wx.BITMAP_TYPE_ANY), style=wx.BORDER_NONE)
        self.bitmap_button_1.SetSize(self.bitmap_button_1.GetBestSize())
        inner_sizer.Add(self.bitmap_button_1, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)

        inner_grid_sizer = wx.FlexGridSizer(1, 2, 2, 2)
        inner_sizer.Add(inner_grid_sizer, 1, 0, 0)

        self.inner_red_spin_ctrl = wx.SpinCtrl(inner_sizer.GetStaticBox(), wx.ID_ANY, "", min=0, max=255, style=0)
        self.inner_red_spin_ctrl.SetMinSize((110, 27))
        inner_grid_sizer.Add(self.inner_red_spin_ctrl, 0, 0, 0)

        self.SetSizer(self.colour_settings_sizer)

        self.Layout()
        # end wxGlade

# end of class MyDialog

class MyApp(wx.App):
    def OnInit(self):
        self.dialog = MyDialog(None, wx.ID_ANY, "")
        self.SetTopWindow(self.dialog)
        self.dialog.ShowModal()
        self.dialog.Destroy()
        return True

# end of class MyApp

if __name__ == "__main__":
    app = MyApp(0)
    app.MainLoop()
