Menu

#72 add Widget method to print itself

open
nobody
None
5
2001-08-10
2001-08-10
Kevin Altis
No

different that repr or pprint.

what needs to happen here is to have a method for the
Widget class that will provide a valid resource
description, each subclass of widget would override
the method to deal with their specific resource
attributes
the Widget class should provide some ordering so
that 'type', 'position', 'size' comes before less
commonly used items, the actual ordering could just be
defined in a list, so it is easy to change
also, if the current values match the defaults for a
widget attribute then that attribute should not be
provided as part of the output

this method will be used among other things by the
Property Editor and poor man's gui resource editor

this type of method could be provided for all classes
that might possibly be defined in the resource file

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.