0
如何更改kivy上默認選項卡的背景顏色? 我能夠改變的內容和其他選項卡的背景,但是默認的選項卡中保持不變,這是我的代碼:在kivy上更改背景顏色默認選項卡
class DAP(App):
title = u'Aplicativo do DAP'
# Funções para evitar que o aplicativo desligue ao mudar o foco da tela no celular
def on_pause(self): return True
def on_resume(self): pass
def build(self):
self.cor_fonte = (0, 0, 1, 1)
self.cor_fundo = (1, 1, 1, 0)
#Abas
self.painel = TabbedPanel(background_color = self.cor_fundo, default_tab_text=u'Principal')
self.aba_resumo = TabbedPanelHeader(text=u'Resumo PC', background_color = self.cor_fundo, color = self.cor_fonte)
self.aba_registros = TabbedPanelHeader(text=u'Registros PC', background_color = self.cor_fundo, color = self.cor_fonte)
self.painel.add_widget(self.aba_resumo)
self.painel.add_widget(self.aba_registros)
self.icon = u'logo_dap.png'
# Definições iniciais
tamx = Window.system_size[0] ; tamy = Window.system_size[1]
return self.painel
if __name__ in ('__main__','__android__'):
DAP().run()
什麼想法?
我按照你的建議禁用了。 – awulll
如果這解決了你的問題,你應該接受一個答案,以便其他人看到你的問題已經得到解答。 – syntonym
對不起,我的錯! – awulll