Exemplo n.º 1
0
 def get_color(self, section, key, gn=None):
     from ctypes import byref
     color = Color()
     if gtlib.gt_style_get_color(self.style, section, key, byref(color),
                                 gn) == 1:
         return color
     else:
         return None
Exemplo n.º 2
0
 def get_color(self, section, key, gn=None):
     from ctypes import byref
     color = Color()
     err = Error()
     rval = gtlib.gt_style_get_color(self.style, section, key, byref(color),\
                                     gn, err)
     if rval == STYLE_OK:
         return color
     elif rval == STYLE_NOT_SET:
         return None
     elif rval == STYLE_ERROR:
         gterror(err)
Exemplo n.º 3
0
 def get_color(self, section, key, gn=None):
     from ctypes import byref
     color = Color()
     err = Error()
     rval = gtlib.gt_style_get_color(self.style, section, key, byref(color),\
                                     gn, err)
     if rval == STYLE_OK:
         return color
     elif rval == STYLE_NOT_SET:
         return None
     elif rval == STYLE_ERROR:
         gterror(err)
Exemplo n.º 4
0
 def get_color(self, section, key, gn=None):
     from ctypes import byref
     color = Color()
     err = Error()
     gnp = None
     if gn:
         gnp = gn._as_parameter_
     rval = gtlib.gt_style_get_color(self.style, section, key, byref(color),\
                                     gnp, err._as_parameter_)
     if rval == STYLE_OK:
         return color
     elif rval == STYLE_NOT_SET:
         return None
     elif rval == STYLE_ERROR:
         gterror(err)
Exemplo n.º 5
0
 def get_color(self, section, key, gn=None):
     from ctypes import byref
     color = Color()
     err = Error()
     gnp = None
     if gn:
         gnp = gn._as_parameter_
     rval = gtlib.gt_style_get_color(self.style, section, key, byref(color),
                                     gnp, err._as_parameter_)
     if rval == STYLE_OK:
         return color
     elif rval == STYLE_NOT_SET:
         return None
     elif rval == STYLE_ERROR:
         gterror(err)