def main():
    from traitsui_gradient_editor import make_test_table
    table, ctf, otf = make_test_table(lut=False)
    # the actual gradient editor code.
    def on_color_table_changed():
        """If we had a vtk window running, update it here"""
        print("Update Render Window")
    app = wx.PySimpleApp()
    editor = wxGradientEditor(table,
                              on_color_table_changed,
                              colors=['rgb', 'a', 'h', 's', 'v'],
                              )
    editor.Show()
    app.MainLoop()
예제 #2
0
def main():
    from traitsui_gradient_editor import make_test_table
    import sys
    table, ctf, otf = make_test_table(lut=False)
    # the actual gradient editor code.
    def on_color_table_changed():
        """If we had a vtk window running, update it here"""
        print("Update Render Window")

    app = QtGui.QApplication.instance()
    editor = QGradientEditor(table,
                              on_color_table_changed,
                              colors=['rgb', 'a', 'h', 's', 'v'],
                              )
    editor.setWindowTitle("Gradient editor")
    editor.show()
    sys.exit(app.exec_())
예제 #3
0
def main():
    from traitsui_gradient_editor import make_test_table
    table, ctf, otf = make_test_table(lut=False)

    # the actual gradient editor code.
    def on_color_table_changed():
        """If we had a vtk window running, update it here"""
        print("Update Render Window")

    app = wx.PySimpleApp()
    editor = wxGradientEditor(
        table,
        on_color_table_changed,
        colors=['rgb', 'a', 'h', 's', 'v'],
    )
    editor.Show()
    app.MainLoop()
예제 #4
0
def main():
    from traitsui_gradient_editor import make_test_table
    import sys
    table, ctf, otf = make_test_table(lut=False)

    # the actual gradient editor code.
    def on_color_table_changed():
        """If we had a vtk window running, update it here"""
        print("Update Render Window")

    app = QtGui.QApplication.instance()
    editor = QGradientEditor(
        table,
        on_color_table_changed,
        colors=['rgb', 'a', 'h', 's', 'v'],
    )
    editor.setWindowTitle("Gradient editor")
    editor.show()
    sys.exit(app.exec_())