Permalink
Browse files

linux wait cursor changed

  • Loading branch information...
1 parent 6c22cff commit 3780c658d967be508b48f388ec5fe6ada55711b3 @bahniks committed Apr 20, 2016
Showing with 9 additions and 6 deletions.
  1. +1 −1 Stuff/Modules/explorer.py
  2. +4 −4 Stuff/Modules/filestorage.py
  3. +4 −1 Stuff/Modules/mode.py
@@ -305,7 +305,7 @@ def saveImages(self):
if len(files) > 1:
progress = ProgressWindow(self, len(files), text = "saved")
elif len(files) == 1 and files[0]:
- self.root.config(cursor = "wait")
+ self.root.config(cursor = m.wait)
self.root.update()
else:
self.status.set("No file selected.")
@@ -345,7 +345,7 @@ def pairSelectedFun(self):
def findPairsFun(self):
"calls method of FileStorage finding pairs of data files"
- self.config(cursor = "wait")
+ self.config(cursor = m.wait)
self.update()
self.fileStorage.findPairs(self.fileStorage.wrongfiles)
self.refresh()
@@ -585,7 +585,7 @@ def update(self):
def addFilesFun(self):
"asks uset to select files and adds them to filestorage (via addFiles)"
- self.root.root.config(cursor = "wait")
+ self.root.root.config(cursor = m.wait)
self.root.root.update()
self.addFiles(self.getFiles())
self.root.root.config(cursor = "")
@@ -595,7 +595,7 @@ def addFilesFun(self):
def addDirectoryFun(self):
"""asks user to select directory and adds files from the directory to the list of files
for processing"""
- self.root.root.config(cursor = "wait")
+ self.root.root.config(cursor = m.wait)
self.root.root.update()
self.addFiles(self.getDirectory())
self.root.root.config(cursor = "")
@@ -605,7 +605,7 @@ def addDirectoryFun(self):
def loadFromLogFun(self):
"""asks user to select file with a log, loads files from the log and adds them to
fileStorage"""
- self.root.root.config(cursor = "wait")
+ self.root.root.config(cursor = m.wait)
self.root.root.update()
filename = str(askopenfilename(initialdir = optionGet("LogDirectory",
View
@@ -17,8 +17,9 @@
along with Carousel Maze Manager. If not, see <http://www.gnu.org/licenses/>.
"""
-from collections import namedtuple, OrderedDict
+import platform
+from collections import namedtuple, OrderedDict
from cm import CM
from mwm import MWM
@@ -35,6 +36,8 @@
slaves = {}
name = ""
parameters = None
+wait = "wait" if platform.system() == "Windows" else "spinning"
+
Task = namedtuple("Task", ["constructor", "files", "parameters"])

0 comments on commit 3780c65

Please sign in to comment.