示例#1
0
 def attr(self,
          id,
          tag=0,
          x=0,
          y=0,
          len=0,
          color_font=COLOR_NONE,
          color_bg=COLOR_NONE,
          color_border=COLOR_NONE,
          font_bold=0,
          font_italic=0,
          font_strikeout=0,
          border_left=0,
          border_right=0,
          border_down=0,
          border_up=0,
          show_on_map=False):
     if color_font == COLOR_NONE:
         color_font = self.get_prop(PROP_COLOR, COLOR_ID_TextFont)
     if color_border == COLOR_NONE:
         color_border = self.get_prop(PROP_COLOR, COLOR_ID_TextFont)
     return ct.ed_attr(self.h, id, tag, x, y, len, color_font, color_bg,
                       color_border, font_bold, font_italic, font_strikeout,
                       border_left, border_right, border_down, border_up,
                       show_on_map)
示例#2
0
    def attr(self, id, tag=0, x=0, y=0, len=1,
             color_font=COLOR_NONE, color_bg=COLOR_NONE, color_border=COLOR_NONE,
             font_bold=0, font_italic=0, font_strikeout=0,
             border_left=0, border_right=0, border_down=0, border_up=0,
             show_on_map=False, map_only=0
             ):

        if id==MARKERS_ADD_MANY:
            if not isinstance(x, int):
                x = ','.join(map(str, x))
                y = ','.join(map(str, y))
                len = ','.join(map(str, len))
        else:
            x = str(x)
            y = str(y)
            len = str(len)

        column = 1 if show_on_map==True else -1 if show_on_map==False else show_on_map

        return ct.ed_attr(self.h, id, tag,
                          x, y, len,
                          color_font, color_bg, color_border,
                          font_bold, font_italic, font_strikeout,
                          border_left, border_right, border_down, border_up,
                          column, map_only
                          )
示例#3
0
 def attr(self, id, tag=0, x=0, y=0, len=0,
          color_font=0, color_bg=0, color_border=0,
          font_bold=0, font_italic=0, font_strikeout=0,
          border_left=0, border_right=0, border_down=0, border_up=0
          ):
     return ct.ed_attr(self.h, id, tag, x, y, len,   
                       color_font, color_bg, color_border,
                       font_bold, font_italic, font_strikeout,
                       border_left, border_right, border_down, border_up
                       )
示例#4
0
 def attr(self, id, tag=0, x=0, y=0, len=0,
          color_font=COLOR_NONE, color_bg=COLOR_NONE, color_border=COLOR_NONE,
          font_bold=0, font_italic=0, font_strikeout=0,
          border_left=0, border_right=0, border_down=0, border_up=0
          ):
     if color_font==COLOR_NONE:
         color_font = self.get_prop(PROP_COLOR, COLOR_ID_TextFont)
     if color_border==COLOR_NONE:
         color_border = self.get_prop(PROP_COLOR, COLOR_ID_TextFont)
     return ct.ed_attr(self.h, id, tag, x, y, len,
                       color_font, color_bg, color_border,
                       font_bold, font_italic, font_strikeout,
                       border_left, border_right, border_down, border_up
                       )
示例#5
0
 def attr(self,
          id,
          tag=0,
          x=0,
          y=0,
          len=0,
          color_font=0,
          color_bg=0,
          color_border=0,
          font_bold=0,
          font_italic=0,
          font_strikeout=0,
          border_left=0,
          border_right=0,
          border_down=0,
          border_up=0):
     return ct.ed_attr(self.h, id, tag, x, y, len, color_font, color_bg,
                       color_border, font_bold, font_italic, font_strikeout,
                       border_left, border_right, border_down, border_up)