Skip to content

Commit

Permalink
GUI cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mkassner committed Feb 11, 2014
1 parent 9c2b292 commit 0353ee9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pupil_src/player/scan_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def update(self,frame,recent_pupil_positions,events):


def init_gui(self,pos=None):
pos = 10,380
pos = 10,390
import atb
from time import time

Expand Down
2 changes: 1 addition & 1 deletion pupil_src/player/vis_circle.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def init_gui(self,pos=None):
help="circle", color=(50, 50, 50), alpha=100,
text='light', position=pos,refresh=.1, size=(300, 100))

self._bar.add_var('color',self.color)
self._bar.add_var('radius',self.radius)
self._bar.add_var('thickness',self.thickness)
self._bar.add_var('full',self.full)
self._bar.add_var('color',self.color)
self._bar.add_button('remove',self.unset_alive)

def unset_alive(self):
Expand Down
4 changes: 2 additions & 2 deletions pupil_src/player/vis_light_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ def update(self,frame,recent_pupil_positions,events):


def init_gui(self,pos=None):
pos = 10,450
pos = 10,470
import atb
from time import time

atb_label = "Light Points"
self._bar = atb.Bar(name =self.__class__.__name__+str(id(self)), label=atb_label,
help="circle", color=(50, 50, 50), alpha=100,
text='light', position=pos,refresh=.1, size=(300, 100))
text='light', position=pos,refresh=.1, size=(300, 20))

self._bar.add_button('remove',self.unset_alive)

Expand Down
4 changes: 1 addition & 3 deletions pupil_src/player/vis_polyline.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ def init_gui(self,pos=None):
help="polyline", color=(50, 50, 50), alpha=100,
text='light', position=pos,refresh=.1, size=(300, 70))

self._bar.add_var('thickness',self.thickness,min=1)
self._bar.add_var('color',self.color)


self._bar.add_var('thickness',self.thickness,min=1)
self._bar.add_button('remove',self.unset_alive)

def unset_alive(self):
Expand Down

0 comments on commit 0353ee9

Please sign in to comment.