Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions LabGym/gui_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def display_window(self):
button_selectcategorizer=wx.Button(panel,label='Select a Categorizer for\nbehavior classification',size=(300,40))
button_selectcategorizer.Bind(wx.EVT_BUTTON,self.select_categorizer)
wx.Button.SetToolTip(button_selectcategorizer,'The fps of the videos to analyze should match that of the selected Categorizer. Uncertain level determines the threshold for the Categorizer to output an ‘NA’ for behavioral classification. See Extended Guide for details.')
self.text_selectcategorizer=wx.StaticText(panel,label='Default: no behavior classification, just track animals and quantify motion kinematcis.',style=wx.ALIGN_LEFT|wx.ST_ELLIPSIZE_END)
self.text_selectcategorizer=wx.StaticText(panel,label='Default: no behavior classification, just track animals and quantify motion kinematics.',style=wx.ALIGN_LEFT|wx.ST_ELLIPSIZE_END)
module_selectcategorizer.Add(button_selectcategorizer,0,wx.LEFT|wx.RIGHT|wx.EXPAND,10)
module_selectcategorizer.Add(self.text_selectcategorizer,0,wx.LEFT|wx.RIGHT|wx.EXPAND,10)
boxsizer.Add(0,10,0)
Expand Down Expand Up @@ -755,7 +755,7 @@ def specify_animalnumber(self,event):
if len(self.animal_to_include)>1:
n=0
while n<len(self.animal_to_include):
dialog1=ColorPicker(self,'Color for '+self.animal_to_include[n],[self.animal_to_include[n],colors[n]])
dialog1=ColorPicker(self,self.animal_to_include[n],[self.animal_to_include[n],colors[n]])
if dialog1.ShowModal()==wx.ID_OK:
(r,b,g,_)=dialog1.color_picker.GetColour()
self.ID_colors.append((b,g,r))
Expand All @@ -764,7 +764,7 @@ def specify_animalnumber(self,event):
dialog1.Destroy()
n+=1
else:
dialog1=ColorPicker(self,'Color for the animal/object',['animal/object',colors[0]])
dialog1=ColorPicker(self,'Animal/object color',['animal/object',colors[0]])
if dialog1.ShowModal()==wx.ID_OK:
(r,b,g,_)=dialog1.color_picker.GetColour()
self.ID_colors.append((b,g,r))
Expand Down Expand Up @@ -827,7 +827,7 @@ def select_behaviors(self,event):
names_colors={}
n=0
while n<len(self.behavior_to_include):
dialog2=ColorPicker(self,'Color for '+self.behavior_to_include[n],[self.behavior_to_include[n],colors[n]])
dialog2=ColorPicker(self,self.behavior_to_include[n],[self.behavior_to_include[n],colors[n]])
if dialog2.ShowModal()==wx.ID_OK:
(r,b,g,_)=dialog2.color_picker.GetColour()
new_color='#%02x%02x%02x'%(r,b,g)
Expand Down Expand Up @@ -1368,7 +1368,7 @@ def select_colors(self,event):
wx.MessageBox('No all_events.xlsx file selected!','Error',wx.OK | wx.ICON_ERROR)
else:
for behavior in self.names_and_colors:
dialog=ColorPicker(self,f'Color for {behavior}',[behavior,self.names_and_colors[behavior]])
dialog=ColorPicker(self,f'{behavior}',[behavior,self.names_and_colors[behavior]])
if dialog.ShowModal()==wx.ID_OK:
(r,b,g,_)=dialog.color_picker.GetColour()
new_color='#%02x%02x%02x'%(r,b,g)
Expand Down
2 changes: 1 addition & 1 deletion LabGym/gui_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class InitialWindow(wx.Frame):

def __init__(self,title):

super(InitialWindow,self).__init__(parent=None,title=title,size=(750,550))
super(InitialWindow,self).__init__(parent=None,title=title,size=(750,600))
self.display_window()


Expand Down
Loading