Ejemplo n.º 1
0
 def __init__(self, view, *widths):
     __View__.__init__(self, 'layout_col', view=view)
     self._widths = L()
     if len(widths) > 0:
         for width in widths:
             if instof(width, tuple): self._widths << width
     else: self._widths << ('lg', 12)
Ejemplo n.º 2
0
 def __init__(self, view, *widths):
     __View__.__init__(self, 'layout_col', view=view)
     self._widths = L()
     if len(widths) > 0:
         for width in widths:
             if instof(width, tuple): self._widths << width
     else: self._widths << ('lg', 12)
Ejemplo n.º 3
0
 def __init__(self, *lines, **option):
     __View__.__init__(self, "ctst_area", lines=L(*lines), opts=M(), labels=L(), series=L(), anima=False)
     for l in self.lines:
         self.series << L()
     self._link = self.__create_link__(option["link"]) if "link" in option else ""
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option["title"] if "title" in option else ""
     if "height" in option:
         self.opts["height"] = str(option["height"]) + "px"
Ejemplo n.º 4
0
 def __init__(self, **option):
     __View__.__init__(self, 'morr_donut', data=L())
     self._link = self.__create_link__(
         option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option[
         'title'] if 'title' in option else ''
     self._height = ' style="height:%dpx"' % option[
         'height'] if 'height' in option else ''
Ejemplo n.º 5
0
 def __init__(self, *heads, **option):
     __View__.__init__(self,
                       'table',
                       heads=L(*heads),
                       recs=L(),
                       _stripe=option['stripe'] if 'stripe' in option else False,
                       _link=self.__create_link__(option['link']) if 'link' in option else ''
                       )
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
Ejemplo n.º 6
0
 def __init__(self, *heads, **option):
     __View__.__init__(
         self,
         'table',
         heads=L(*heads),
         recs=L(),
         _stripe=option['stripe'] if 'stripe' in option else False,
         _link=self.__create_link__(option['link'])
         if 'link' in option else '')
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option[
         'title'] if 'title' in option else ''
Ejemplo n.º 7
0
 def __init__(self,
              title,
              view,
              panel='default',
              icon='fa-archive',
              link=None):
     __View__.__init__(self, 'panel', view=view)
     self._title = title
     self._panel = panel
     self._icon = icon
     self._link = self.__create_link__(link)
Ejemplo n.º 8
0
 def __init__(self, *lines, **option):
     __View__.__init__(self, 'ctst_slide', lines=L(*lines), opts=M(seriesBarDistance=5), labels=L(), series=L(), size=5, anima=False)
     if len(self.lines) > 0:
         for l in self.lines: self.series << L()
         self.add = self.__addMapped__
     else:
         self.add = self.__addLinear__
         self.opts['distributeSeries'] = True
     self._link = self.__create_link__(option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
     if 'height' in option: self.opts['height'] = str(option['height']) + 'px'
Ejemplo n.º 9
0
 def __init__(self, chart_name, *lines, **option):
     __View__.__init__(self,
                       chart_name,
                       lines=L(*lines),
                       opts=M(),
                       data=L())
     if len(self.lines) == 0: self.lines << 'Data'
     self._link = self.__create_link__(
         option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option[
         'title'] if 'title' in option else ''
     self._height = ' style="height:%dpx"' % option[
         'height'] if 'height' in option else ''
Ejemplo n.º 10
0
 def __init__(self,
              title,
              msg='',
              panel='default',
              icon='fa-info-circle',
              link=None):
     __View__.__init__(self,
                       'infonoti',
                       title=title,
                       msg=msg,
                       panel=panel,
                       icon=icon,
                       link=self.__create_link__(link))
Ejemplo n.º 11
0
 def __init__(self, value, min=0, max=100, **option):
     __View__.__init__(self,
                       'justgage',
                       value=value,
                       min=min,
                       max=max,
                       opts=M())
     if 'desc' in option: self.opts['title'] = option['desc']
     self._link = self.__create_link__(
         option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option[
         'title'] if 'title' in option else ''
     self._height = ' style="height:%dpx;"' % option[
         'height'] if 'height' in option else ''
Ejemplo n.º 12
0
 def __init__(self,
              title,
              count,
              desc='',
              panel='default',
              icon='fa-info-circle',
              link=None):
     __View__.__init__(self,
                       'infopanel',
                       title=title,
                       count=count,
                       desc=desc,
                       panel=panel,
                       icon=icon,
                       link=self.__create_link__(link))
Ejemplo n.º 13
0
 def __init__(self, *lines, **option):
     __View__.__init__(
         self,
         "ctst_slide",
         lines=L(*lines),
         opts=M(seriesBarDistance=5),
         labels=L(),
         series=L(),
         size=5,
         anima=False,
     )
     if len(self.lines) > 0:
         for l in self.lines:
             self.series << L()
         self.add = self.__addMapped__
     else:
         self.add = self.__addLinear__
         self.opts["distributeSeries"] = True
     self._link = self.__create_link__(option["link"]) if "link" in option else ""
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option["title"] if "title" in option else ""
     if "height" in option:
         self.opts["height"] = str(option["height"]) + "px"
Ejemplo n.º 14
0
 def __init__(self, value, min=0, max=100, **option):
     __View__.__init__(self, 'justgage', value=value, min=min, max=max, opts=M())
     if 'desc' in option: self.opts['title'] = option['desc']
     self._link = self.__create_link__(option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
     self._height = ' style="height:%dpx;"' % option['height'] if 'height' in option else ''
Ejemplo n.º 15
0
 def __init__(self, **option):
     __View__.__init__(self, "ctst_donut", opts=M(donutWidth="100%"), labels=L(), series=L())
     self._link = self.__create_link__(option["link"]) if "link" in option else ""
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option["title"] if "title" in option else ""
     if "height" in option:
         self.opts["height"] = str(option["height"]) + "px"
Ejemplo n.º 16
0
 def __init__(self, *cols, **option):
     __View__.__init__(self, 'layout_row', cols=L())
     for col in cols:
         if instof(col, Col): self.cols << col
         else: self.cols << Col(col)
Ejemplo n.º 17
0
 def __init__(self, init_scr='', init_loc='', init_cmd='', line_cnt=200):
     __View__.__init__(self, 'terminal', command=init_cmd)
     self.setScreen(init_scr)
     self.setLocation(init_loc)
     self.line_cnt = line_cnt
Ejemplo n.º 18
0
 def __init__(self, msg):
     __View__.__init__(self, 'error', doc=msg)
Ejemplo n.º 19
0
 def __init__(self, title, count, desc='', panel='default', icon='fa-info-circle', link=None):
     __View__.__init__(self, 'infopanel', title=title, count=count, desc=desc, panel=panel, icon=icon, link=self.__create_link__(link))
Ejemplo n.º 20
0
 def __init__(self, title, msg='', icon='fa-info-circle', link=None):
     __View__.__init__(self, 'infoblock', title=title, msg=msg, icon=icon)
     self._link = self.__create_link__(link)
Ejemplo n.º 21
0
 def __init__(self, *rows, **option):
     __View__.__init__(self, 'layout', rows=L(*rows))
     self._border = ' style="border: %dpx solid %s;"' % (
         option['border'][0],
         option['border'][1]) if 'border' in option else ''
Ejemplo n.º 22
0
 def __init__(self, init_scr='', init_loc='', init_cmd='', line_cnt=200):
     __View__.__init__(self, 'terminal', command=init_cmd)
     self.setScreen(init_scr)
     self.setLocation(init_loc)
     self.line_cnt = line_cnt
Ejemplo n.º 23
0
 def __init__(self, submit, **kargs):
     __View__.__init__(self, 'form', **kargs)
     self._submit = submit
     self._order = L()
Ejemplo n.º 24
0
 def __init__(self, text, link=None, height=None):
     __View__.__init__(self, 'text', text=text)
     self._link = self.__create_link__(link)
Ejemplo n.º 25
0
 def __init__(self, doc, link=None):
     __View__.__init__(self, 'infodoc', doc=doc)
     self._link = self.__create_link__(link)
Ejemplo n.º 26
0
 def __init__(self, **option):
     __View__.__init__(self, 'morr_donut', data=L())
     self._link = self.__create_link__(option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
     self._height = ' style="height:%dpx"' % option['height'] if 'height' in option else ''
Ejemplo n.º 27
0
 def __init__(self):
     __View__.__init__(self, 'hlist', item=L())
Ejemplo n.º 28
0
 def __init__(self, *cols, **option):
     __View__.__init__(self, 'layout_row', cols=L())
     for col in cols:
         if instof(col, Col): self.cols << col
         else: self.cols << Col(col)
Ejemplo n.º 29
0
 def __init__(self, title, msg='', panel='default', icon='fa-info-circle', link=None):
     __View__.__init__(self, 'infonoti', title=title, msg=msg, panel=panel, icon=icon, link=self.__create_link__(link))
Ejemplo n.º 30
0
 def __init__(self, html):
     __View__.__init__(self, 'html', html=html)
Ejemplo n.º 31
0
 def __init__(self, doc, link=None):
     __View__.__init__(self, 'infodoc', doc=doc)
     self._link = self.__create_link__(link)
Ejemplo n.º 32
0
 def __init__(self):
     __View__.__init__(self, 'empty')
Ejemplo n.º 33
0
 def __init__(self, submit, **kargs):
     __View__.__init__(self, 'form', **kargs)
     self._submit = submit
     self._order = L()
Ejemplo n.º 34
0
 def __init__(self, **option):
     __View__.__init__(self, 'ctst_donut', opts=M(donutWidth='100%'), labels=L(), series=L())
     self._link = self.__create_link__(option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
     if 'height' in option: self.opts['height'] = str(option['height']) + 'px'
Ejemplo n.º 35
0
 def __init__(self, *rows, **option):
     __View__.__init__(self, 'layout', rows=L(*rows))
     self._border = ' style="border: %dpx solid %s;"' % (option['border'][0], option['border'][1]) if 'border' in option else ''
Ejemplo n.º 36
0
 def __init__(self, view, link=None):
     __View__.__init__(self, 'plain', view=view)
     self._link = self.__create_link__(link)
Ejemplo n.º 37
0
 def __init__(self, view, link=None):
     __View__.__init__(self, 'plain', view=view)
     self._link = self.__create_link__(link)
Ejemplo n.º 38
0
 def __init__(self, html):
     __View__.__init__(self, 'html', html=html)
Ejemplo n.º 39
0
 def __init__(self):
     __View__.__init__(self, 'empty')
Ejemplo n.º 40
0
 def __init__(self, text, link=None, height=None):
     __View__.__init__(self, 'text', text=text)
     self._link = self.__create_link__(link)
Ejemplo n.º 41
0
 def __init__(self, chart_name, *lines, **option):
     __View__.__init__(self, chart_name, lines=L(*lines), opts=M(), data=L())
     if len(self.lines) == 0: self.lines << 'Data'
     self._link = self.__create_link__(option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
     self._height = ' style="height:%dpx"' % option['height'] if 'height' in option else ''
Ejemplo n.º 42
0
 def __init__(self):
     __View__.__init__(self, 'hlist', item=L())
Ejemplo n.º 43
0
 def __init__(self, msg):
     __View__.__init__(self, 'error', doc=msg)
Ejemplo n.º 44
0
 def __init__(self, title, msg='', icon='fa-info-circle', link=None):
     __View__.__init__(self, 'infoblock', title=title, msg=msg, icon=icon)
     self._link = self.__create_link__(link)
Ejemplo n.º 45
0
 def __init__(self, *lines, **option):
     __View__.__init__(self, 'ctst_area', lines=L(*lines), opts=M(), labels=L(), series=L(), anima=False)
     for l in self.lines: self.series << L()
     self._link = self.__create_link__(option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
     if 'height' in option: self.opts['height'] = str(option['height']) + 'px'
Ejemplo n.º 46
0
 def __init__(self, title, view, panel='default', icon='fa-archive', link=None):
     __View__.__init__(self, 'panel', view=view)
     self._title = title
     self._panel = panel
     self._icon = icon
     self._link = self.__create_link__(link)