[Pythoncad-developer] Sytile and settings In new kernel
CAD Application entire developed in Python
Status: Beta
Brought to you by:
matteoboscolo
From: Matteo B. <mat...@bo...> - 2010-05-12 13:04:05
|
Hi Gertwing, Guys, I have finished to implements the new style in the application. I would like to discuss with you what the new style object have to contains and witch stucuture mast have. What I goanna do is : Have a style object that contains all the style setting like a dictionary .. So my class will be some think like this: STYLE_KEYWORD=['color','linetype','linethicness','textstyle','textcolor'...] Class Style(GeometricalEntity): Def __init__(self,**par): Self.__param=par Def getParam(self,name): #Return the param value Def setParam(self,name,value): #set the param value ..#some other useful method I would like to do the some think with the settings object The style object could be stored in application Kernel or in the single document (the user decide which one is the active one. Of course if the user decide to use an application style, we need to copy it in the active document .. ) The Setting object could be stored in the application Kernel only. Let me know What do you think .. Or if you have some other idea for the style or application settings in general .. Regards, Matteo |