FIX: Seperated from prior codebase
git-svn-id: http://www.neo1973-germany.de/svn@76 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
parent
29339fc3f4
commit
93267b7c0f
2 changed files with 7 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
||||||
"""
|
"""
|
||||||
* 2d_slider.py - Project TVMagnet
|
* 2d_slider.py
|
||||||
* - widget to allow for 2D selection of values
|
* widget to allow for 2D selection of values
|
||||||
*
|
*
|
||||||
* (C) 2008 by Kristian Mueller <kristian-m@kristian-m.de>
|
* (C) 2008 by Kristian Mueller <kristian-m@kristian-m.de>
|
||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
import os
|
import os
|
||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
IMAGE_DIRECTORY = os.path.join(os.path.realpath(os.path.curdir), "../images")
|
IMAGE_DIRECTORY = os.path.join(os.path.realpath(os.path.curdir), "./")
|
||||||
POINT_IMAGE = os.path.join(IMAGE_DIRECTORY, "point.png")
|
POINT_IMAGE = os.path.join(IMAGE_DIRECTORY, "point.png")
|
||||||
POINT_INV_IMAGE = os.path.join(IMAGE_DIRECTORY, "point_inv.png")
|
POINT_INV_IMAGE = os.path.join(IMAGE_DIRECTORY, "point_inv.png")
|
||||||
IMAGE_SIZE_X = 10
|
IMAGE_SIZE_X = 10
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""
|
"""
|
||||||
* 2d_slider_test.py - Project TVMagnet
|
* 2d_slider_test.py
|
||||||
* test 2D slider widget
|
* 2D slider widget - test program
|
||||||
*
|
*
|
||||||
* (C) 2008 by Kristian Mueller <kristian-m@kristian-m.de>
|
* (C) 2008 by Kristian Mueller <kristian-m@kristian-m.de>
|
||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
import playlistmanager.slider_2d
|
import slider_2d
|
||||||
|
|
||||||
def delete_event(widget, event, data=None):
|
def delete_event(widget, event, data=None):
|
||||||
print("closing")
|
print("closing")
|
||||||
|
@ -47,7 +47,7 @@ value_y_label = gtk.Label("Value Y: none")
|
||||||
init_box = gtk.VBox()
|
init_box = gtk.VBox()
|
||||||
init_box.set_border_width(35)
|
init_box.set_border_width(35)
|
||||||
|
|
||||||
slider_2d = playlistmanager.slider_2d.slider_2d(\
|
slider_2d = slider_2d.slider_2d(\
|
||||||
x_range = (0, 20), y_range = (0, 15))
|
x_range = (0, 20), y_range = (0, 15))
|
||||||
|
|
||||||
slider_2d.connect('x_value_changed_event', x_changed_callback)
|
slider_2d.connect('x_value_changed_event', x_changed_callback)
|
||||||
|
@ -61,6 +61,3 @@ window.add(init_box)
|
||||||
window.show_all()
|
window.show_all()
|
||||||
|
|
||||||
gtk.main()
|
gtk.main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue