示例#1
0
    def traits_view(self):

        imgrp = Item('_image', show_label=False, editor=ImageEditor(),
                      width=self.width,
                      height=self.height,
                      style='custom'
                      )

        v = View(
#                 Item('thresholdv'),
                 imgrp,
                 handler=ImageHandler,
                 x=0.55,
                 y=35,
                 width=self.width,
                 height=self.height + 22,
                 resizable=True
                 )

        if self.title is not None:
            v.title = self.title

        if self.view_identifier is not None:
            v.id = self.view_identifier

        return v
示例#2
0
    def traits_view(self):
        plot = Item('plotcontainer',
                    style='custom',
                    show_label=False,
                    editor=ComponentEditor(size=(self.width, self.height)))

        v = View(plot,
                 resizable=self.resizable,
                 title=self.window_title,
                 width=self.window_width,
                 height=self.window_height,
                 x=self.window_x,
                 y=self.window_y,
                 handler=self.handler_klass)

        if self.view_identifier:
            v.id = self.view_identifier
        return v
示例#3
0
文件: graph.py 项目: kenlchen/pychron
    def traits_view(self):
        plot = Item('plotcontainer',
                    style='custom',
                    show_label=False,
                    editor=ComponentEditor(
                        size=(self.width,
                              self.height)))

        v = View(plot,
                 resizable=self.resizable,
                 title=self.window_title,
                 width=self.window_width,
                 height=self.window_height,
                 x=self.window_x,
                 y=self.window_y,
                 handler=self.handler_klass)

        if self.view_identifier:
            v.id = self.view_identifier
        return v