Commit ed6265119833825fb42f63eadbb539ecb786bdb6
1 parent
0e413393
Exists in
master
and in
67 other branches
ENH: added updater
Showing
1 changed file
with
24 additions
and
0 deletions
Show diff stats
invesalius/gui/frame.py
@@ -43,6 +43,12 @@ import preferences | @@ -43,6 +43,12 @@ import preferences | ||
43 | VIEW_TOOLS = [ID_LAYOUT, ID_TEXT] =\ | 43 | VIEW_TOOLS = [ID_LAYOUT, ID_TEXT] =\ |
44 | [wx.NewId() for number in range(2)] | 44 | [wx.NewId() for number in range(2)] |
45 | 45 | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
46 | class Frame(wx.Frame): | 52 | class Frame(wx.Frame): |
47 | """ | 53 | """ |
48 | Main frame of the whole software. | 54 | Main frame of the whole software. |
@@ -82,6 +88,8 @@ class Frame(wx.Frame): | @@ -82,6 +88,8 @@ class Frame(wx.Frame): | ||
82 | # Initialize bind to pubsub events | 88 | # Initialize bind to pubsub events |
83 | self.__bind_events() | 89 | self.__bind_events() |
84 | self.__bind_events_wx() | 90 | self.__bind_events_wx() |
91 | + | ||
92 | + utils.CheckForUpdate() | ||
85 | 93 | ||
86 | def __bind_events(self): | 94 | def __bind_events(self): |
87 | """ | 95 | """ |
@@ -429,6 +437,12 @@ class Frame(wx.Frame): | @@ -429,6 +437,12 @@ class Frame(wx.Frame): | ||
429 | Publisher.sendMessage('Update scroll') | 437 | Publisher.sendMessage('Update scroll') |
430 | Publisher.sendMessage('Reload actual slice') | 438 | Publisher.sendMessage('Reload actual slice') |
431 | 439 | ||
440 | + | ||
441 | + | ||
442 | + | ||
443 | + | ||
444 | + | ||
445 | + | ||
432 | # ------------------------------------------------------------------ | 446 | # ------------------------------------------------------------------ |
433 | # ------------------------------------------------------------------ | 447 | # ------------------------------------------------------------------ |
434 | # ------------------------------------------------------------------ | 448 | # ------------------------------------------------------------------ |
@@ -1383,3 +1397,13 @@ class LayoutToolBar(wx.ToolBar): | @@ -1383,3 +1397,13 @@ class LayoutToolBar(wx.ToolBar): | ||
1383 | Publisher.sendMessage('Update AUI') | 1397 | Publisher.sendMessage('Update AUI') |
1384 | self.ontool_text = True | 1398 | self.ontool_text = True |
1385 | 1399 | ||
1400 | + | ||
1401 | + | ||
1402 | + | ||
1403 | + | ||
1404 | + | ||
1405 | + | ||
1406 | + | ||
1407 | + | ||
1408 | + | ||
1409 | + |