import wx import openpyxl class MyApp(wx.Frame): def __init__(self, parent, id, title): frame = wx.Frame.__init__(self, parent, id, title, size=(470, 500)) vbox_top01 = wx.BoxSizer(wx.VERTICAL) vbox00 = wx.BoxSizer(wx.HORIZONTAL) notebook = wx.Notebook(self, -1) panel01 = wx.Panel(notebook, wx.ID_ANY) panel02 = wx.Panel(notebook, wx.ID_ANY) notebook.AddPage(panel01, 'Extention') notebook.AddPage(panel02, 'CC_Edit') vbox1 = wx.BoxSizer(wx.VERTICAL) #panel1 panel1 = wx.Panel(panel01, -1) hbox11 = wx.BoxSizer(wx.HORIZONTAL) sizer11 = wx.StaticBoxSizer(wx.StaticBox(panel1, -1, ''), orient=wx.VERTICAL) s_text_11 = wx.StaticText(panel1, wx.ID_ANY, '', style=wx.TE_CENTER) bot_element = ("","","") bot_combobox = wx.ComboBox(panel1, wx.ID_ANY, '',choices=bot_element, style=wx.CB_READONLY) s_text_12 = wx.StaticText(panel1, wx.ID_ANY, '', style=wx.TE_CENTER) cc_element = () cc_combobox = wx.ComboBox(panel1, wx.ID_ANY, '',choices=cc_element, style=wx.CB_READONLY) wb = openpyxl.load_workbook(".xlsx") sheet = wb["Sheet1"] for i in range(2,wb['Sheet1'].max_row + 1): cc_combobox.Append(sheet.cell(row=i,column=1).value) s_text_13 = wx.StaticText(panel1, wx.ID_ANY, '', style=wx.TE_CENTER) mode_element = ("","") mode_combobox = wx.ComboBox(panel1, wx.ID_ANY, '',choices=mode_element, style=wx.CB_READONLY) sizer11.Add(s_text_11, proportion=2) sizer11.Add(bot_combobox, proportion=3, flag=wx.GROW) sizer11.Add(s_text_12, proportion=2) sizer11.Add(cc_combobox, proportion=3, flag=wx.GROW) sizer11.Add(s_text_13, proportion=2) sizer11.Add(mode_combobox, proportion=3, flag=wx.GROW) hbox11.Add(sizer11) sizer12 = wx.FlexGridSizer(rows=5, cols=2, gap=(20, 0)) s_text_14 = wx.StaticText(panel1, wx.ID_ANY, '', style=wx.ALIGN_CENTER) reload_text = wx.TextCtrl(panel1, wx.ID_ANY, style=wx.TE_CENTER) s_text_15 = wx.StaticText(panel1, wx.ID_ANY, '', style=wx.ALIGN_CENTER) restock_text = wx.TextCtrl(panel1, wx.ID_ANY, style=wx.TE_CENTER) s_text_16 = wx.StaticText(panel1, wx.ID_ANY, '', style=wx.ALIGN_CENTER) cartin_text = wx.TextCtrl(panel1, wx.ID_ANY, style=wx.TE_CENTER) s_text_17 = wx.StaticText(panel1, wx.ID_ANY, '', style=wx.ALIGN_CENTER) checkout_text = wx.TextCtrl(panel1, wx.ID_ANY, style=wx.TE_CENTER) font = wx.Font(14, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL) reload_text.SetFont(font) restock_text.SetFont(font) cartin_text.SetFont(font) checkout_text.SetFont(font) sizer12.Add(s_text_14) sizer12.Add(s_text_15) sizer12.Add(reload_text) sizer12.Add(restock_text) sizer12.Add(s_text_16) sizer12.Add(s_text_17) sizer12.Add(cartin_text) sizer12.Add(checkout_text) sizer12.AddGrowableRow(0, 1) sizer12.AddGrowableRow(1, 4) sizer12.AddGrowableRow(2, 1) sizer12.AddGrowableRow(3, 4) hbox11.Add(sizer12) panel1.SetSizer(hbox11) vbox1.Add(panel1, 1, wx.EXPAND | wx.TOP | wx.RIGHT | wx.LEFT, 10) #panel2 panel2 = wx.Panel(panel01, -1) hbox12 = wx.BoxSizer(wx.HORIZONTAL) payment_checkbox = wx.CheckBox(panel2, wx.ID_ANY, '') payment_checkbox.SetValue(True) size_checkbox = wx.CheckBox(panel2, wx.ID_ANY, '') size_checkbox.SetValue(True) hbox12.Add(payment_checkbox) hbox12.Add(size_checkbox) panel2.SetSizer(hbox12) vbox1.Add(panel2, 1, wx.EXPAND | wx.LEFT | wx.TOP, 10) panel01.SetSizer(vbox1) self.Show(True) app = wx.App() MyApp(None, -1, 'Profile') app.MainLoop() コード
wxpythonでGUIを作っているのですが上のコードを実行するとチェックボックスのあたりに黒い点が現れます。
notebookが原因だと思うのですがどのように書けば解決するでしょうか
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。