Commit 789863a95929bc6849359dc8f3d450ffd35c2c0f
1 parent
9eccb156
Exists in
master
and in
68 other branches
STL: Removed comments / duble imports
Showing
2 changed files
with
2 additions
and
4 deletions
Show diff stats
invesalius/invesalius.py
| @@ -22,9 +22,9 @@ from optparse import OptionParser | @@ -22,9 +22,9 @@ from optparse import OptionParser | ||
| 22 | import os | 22 | import os |
| 23 | import sys | 23 | import sys |
| 24 | 24 | ||
| 25 | +from session import Session | ||
| 25 | import gui.language_dialog as lang_dlg | 26 | import gui.language_dialog as lang_dlg |
| 26 | import i18n | 27 | import i18n |
| 27 | -from session import Session | ||
| 28 | import utils | 28 | import utils |
| 29 | 29 | ||
| 30 | 30 |
invesalius/session.py
| @@ -2,12 +2,11 @@ import ConfigParser | @@ -2,12 +2,11 @@ import ConfigParser | ||
| 2 | import os | 2 | import os |
| 3 | from threading import Thread | 3 | from threading import Thread |
| 4 | import time | 4 | import time |
| 5 | + | ||
| 5 | import wx.lib.pubsub as ps | 6 | import wx.lib.pubsub as ps |
| 6 | 7 | ||
| 7 | from utils import Singleton, debug | 8 | from utils import Singleton, debug |
| 8 | 9 | ||
| 9 | -import wx.lib.pubsub as ps | ||
| 10 | - | ||
| 11 | class Session(object): | 10 | class Session(object): |
| 12 | # Only one session will be initialized per time. Therefore, we use | 11 | # Only one session will be initialized per time. Therefore, we use |
| 13 | # Singleton design pattern for implementing it | 12 | # Singleton design pattern for implementing it |
| @@ -18,7 +17,6 @@ class Session(object): | @@ -18,7 +17,6 @@ class Session(object): | ||
| 18 | 17 | ||
| 19 | ws = self.ws = WriteSession(self) | 18 | ws = self.ws = WriteSession(self) |
| 20 | ws.start() | 19 | ws.start() |
| 21 | - | ||
| 22 | ps.Publisher().subscribe(self.StopRecording, "Stop Config Recording") | 20 | ps.Publisher().subscribe(self.StopRecording, "Stop Config Recording") |
| 23 | 21 | ||
| 24 | def CreateItens(self): | 22 | def CreateItens(self): |