From: hwg <hw...@ya...> - 2011-06-17 20:23:23
|
Is it possible to dynamically (programatically) change the size of the font inside a Text Area? I tried the following: from PythonCard import model class MainWindow(model.Background): def on_Slider1_mouseUp(self, event): sliderValue = self.components.Slider1.value self.components.TextArea1.font['size'] = sliderValue app = model.Application(MainWindow) app.MainLoop() When I run this and move the slider, I get the error: TypeError: 'Font' object does not support item assignment. Is there a way to do this? Thanks, hwg |