The following view is styled as expected
def traits_view(self):
style_sheet = '''
QLabel {
font: 36pt "Verdana";
margin-left: 12px;
}
QPushButton {
font: 36pt "Verdana";
margin: 16px;
padding: 8px
}
'''
return QtView(
spring,
Label(self.msg),
spring,
buttons=self.buttons,
height=1.0,
width=1.0,
style_sheet=style_sheet,
)
But if I make the view modal, the styling goes away:
def traits_view(self):
style_sheet = '''
QLabel {
font: 36pt "Verdana";
margin-left: 12px;
}
QPushButton {
font: 36pt "Verdana";
margin: 16px;
padding: 8px
}
'''
return QtView(
Label(self.msg),
buttons=self.buttons,
kind='modal', # <---- this is the only change
height=1.0,
width=1.0,
style_sheet=style_sheet,
)
How can I style a modal view?