Esempio 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)
Esempio 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)
Esempio 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"
Esempio 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 ''
Esempio 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 ''
Esempio 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 ''
Esempio 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)
Esempio 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'
Esempio 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 ''
Esempio 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))
Esempio 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 ''
Esempio 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))
Esempio 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"
Esempio 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 ''
Esempio 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"
Esempio 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)
Esempio 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
Esempio n. 18
0
 def __init__(self, msg):
     __View__.__init__(self, 'error', doc=msg)
Esempio 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))
Esempio 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)
Esempio 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 ''
Esempio 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
Esempio n. 23
0
 def __init__(self, submit, **kargs):
     __View__.__init__(self, 'form', **kargs)
     self._submit = submit
     self._order = L()
Esempio n. 24
0
 def __init__(self, text, link=None, height=None):
     __View__.__init__(self, 'text', text=text)
     self._link = self.__create_link__(link)
Esempio n. 25
0
 def __init__(self, doc, link=None):
     __View__.__init__(self, 'infodoc', doc=doc)
     self._link = self.__create_link__(link)
Esempio 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 ''
Esempio n. 27
0
 def __init__(self):
     __View__.__init__(self, 'hlist', item=L())
Esempio 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)
Esempio 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))
Esempio n. 30
0
 def __init__(self, html):
     __View__.__init__(self, 'html', html=html)
Esempio n. 31
0
 def __init__(self, doc, link=None):
     __View__.__init__(self, 'infodoc', doc=doc)
     self._link = self.__create_link__(link)
Esempio n. 32
0
 def __init__(self):
     __View__.__init__(self, 'empty')
Esempio n. 33
0
 def __init__(self, submit, **kargs):
     __View__.__init__(self, 'form', **kargs)
     self._submit = submit
     self._order = L()
Esempio 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'
Esempio 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 ''
Esempio n. 36
0
 def __init__(self, view, link=None):
     __View__.__init__(self, 'plain', view=view)
     self._link = self.__create_link__(link)
Esempio n. 37
0
 def __init__(self, view, link=None):
     __View__.__init__(self, 'plain', view=view)
     self._link = self.__create_link__(link)
Esempio n. 38
0
 def __init__(self, html):
     __View__.__init__(self, 'html', html=html)
Esempio n. 39
0
 def __init__(self):
     __View__.__init__(self, 'empty')
Esempio n. 40
0
 def __init__(self, text, link=None, height=None):
     __View__.__init__(self, 'text', text=text)
     self._link = self.__create_link__(link)
Esempio 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 ''
Esempio n. 42
0
 def __init__(self):
     __View__.__init__(self, 'hlist', item=L())
Esempio n. 43
0
 def __init__(self, msg):
     __View__.__init__(self, 'error', doc=msg)
Esempio 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)
Esempio 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'
Esempio 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)