Beispiel #1
0
 def get_cstr(self, section, key, gn=None):
     string = Str()
     if gtlib.gt_style_get_str(self.style, section, key, string, gn) == \
         1:
         return str(string)
     else:
         return None
Beispiel #2
0
 def get_cstr(self, section, key, gn=None):
     string = Str()
     err = Error()
     rval = gtlib.gt_style_get_str(self.style, section, key, string, gn, err)
     if rval == STYLE_OK:
         return str(string)
     elif rval == STYLE_NOT_SET:
         return None
     elif rval == STYLE_ERROR:
         gterror(err)
Beispiel #3
0
 def get_cstr(self, section, key, gn=None):
     string = Str()
     err = Error()
     rval = gtlib.gt_style_get_str(self.style, section, key, string, gn,
                                   err)
     if rval == STYLE_OK:
         return str(string)
     elif rval == STYLE_NOT_SET:
         return None
     elif rval == STYLE_ERROR:
         gterror(err)
Beispiel #4
0
 def get_cstr(self, section, key, gn=None):
     string = Str()
     err = Error()
     gnp = None
     if gn:
         gnp = gn._as_parameter_
     rval = gtlib.gt_style_get_str(self.style, section, key,
             string._as_parameter_, gnp, err._as_parameter_)
     if rval == STYLE_OK:
         return str(string)
     elif rval == STYLE_NOT_SET:
         return None
     elif rval == STYLE_ERROR:
         gterror(err)
Beispiel #5
0
 def get_cstr(self, section, key, gn=None):
     string = Str()
     err = Error()
     gnp = None
     if gn:
         gnp = gn._as_parameter_
     rval = gtlib.gt_style_get_str(self.style, section, key,
                                   string._as_parameter_, gnp,
                                   err._as_parameter_)
     if rval == STYLE_OK:
         return str(string)
     elif rval == STYLE_NOT_SET:
         return None
     elif rval == STYLE_ERROR:
         gterror(err)