From: Alec B. <wry...@gm...> - 2012-09-28 06:35:46
|
Hello very quiet Pythoncard email list! I'm trying to add an ImageButton dynamically to a resource file, and can't figure out how to do so. Suppose the ImageButton looked like this: {'type':'ImageButton', 'name':'stop', 'position':(10, 10), 'border':'transparent', 'command':u'stop', 'file':'', 'visible':False, }, And I refer to the components in this resource file like this: self.childWindow.components.whateverButton.visible = False (etc.) Any idea how I would add this ImageButton component, short of writing to the actual resource file? Thanks for any help. |