Example #1
0
 def default_traits_view(self):
     view = View(
         Item('scene',
              editor=SceneEditor(scene_class=MayaviScene),
              height=600,
              width=600,
              show_label=False),
         HGroup(
             Item("current_time", label="Date"), Item(" "),
             Item("num_of_shown_days", label="Show"),
             Item("_home_button", show_label=False),
             Item("_selected_source_name", show_label=False),
             Item("_selected_event_name",
                  editor=CheckListEditor(name='_selected_events_list'),
                  show_label=False), Item("_back1", show_label=False),
             Item(
                 "Relative_Start_Day",
                 show_label=False,
                 editor=RangeEditor(mode="slider",
                                    low_name="_low_start_day_number",
                                    high_name="_high_start_day_number"),
                 tooltip=
                 "Shows total number of days in data set and the currently selected day",
                 springy=True,
                 full_size=True), Item("_forward1", show_label=False),
             Item("move_step", show_label=False),
             Item("play_button", label='Play')),
         title="Visualization of Events",
         resizable=True)
     view.resizable = True
     return view
Example #2
0
    def default_traits_view(self):
        view = View(
            Item('scene', editor=SceneEditor(scene_class=MayaviScene),
                 height=600, width=600, show_label=False),
            HGroup(
                Item("current_time", label="Date"),
                Item(" "),
                Item("num_of_shown_days", label="Show"),
                Item("_selected_source_name", label="Selection"),
                Item("_selected_event_name", editor=CheckListEditor(name='_selected_events_list'), show_label=False),

                Item("_back1", show_label=False),
                Item("Relative_Start_Day", show_label=False, editor=RangeEditor(mode="slider", low_name="_low_start_day_number", high_name="_high_start_day_number"), tooltip="Shows total number of days in data set and the currently selected day", springy=True, full_size=True),
                Item("_forward1", show_label=False),
                Item("move_step", show_label=False),
                Item("play_button", label='Play')
            ),
            title="Visualization of Events",
            resizable=True

        )
        view.resizable = True
        return view