Skip to content

Commit

Permalink
Fix preview on python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
FSL User committed Mar 27, 2018
1 parent 1fe67e2 commit 7bf69d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/asl/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def __init__(self, parent, n_tis, n_repeats, tc_pairs, order, tagfirst):
self.Bind(wx.EVT_SIZE, self.on_size)
self.Bind(wx.EVT_PAINT, self.on_paint)
self.n_tis = n_tis
self.n_repeats = n_repeats
self.n_repeats = int(n_repeats)
self.tc_pairs = tc_pairs
self.tagfirst = tagfirst
self.order = order
Expand All @@ -415,7 +415,7 @@ def get_col(self, pos, ti):

def on_paint(self, event):
w, h = self.GetClientSize()
N = self.n_tis * self.n_repeats
N = self.n_tis * int(self.n_repeats)
if self.tc_pairs: N *= 2
dc = wx.AutoBufferedPaintDC(self)
dc.Clear()
Expand Down Expand Up @@ -467,7 +467,7 @@ def on_paint(self, event):
seq.append(i)
elif t == "r":
seq.append(i)
seq += [i+2,] * (self.n_repeats - 1)
seq += [i+2,] * (int(self.n_repeats) - 1)

tistart = -1
ti_sep = 1
Expand Down

0 comments on commit 7bf69d1

Please sign in to comment.