[prev in list] [next in list] [prev in thread] [next in thread]
List: imgseek-commits
Subject: [imgSeek-commits] imgseek/imgSeekLib customWidgets.py,1.103,1.104 imgSeekApp.py,1.31,1.32
From: niederberger () users ! sourceforge ! net
Date: 2004-03-03 23:56:53
Message-ID: E1AygEP-0006h2-6N () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/imgseek/imgseek/imgSeekLib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25656/imgSeekLib
Modified Files:
customWidgets.py imgSeekApp.py
Log Message:
Index: customWidgets.py
===================================================================
RCS file: /cvsroot/imgseek/imgseek/imgSeekLib/customWidgets.py,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -d -r1.103 -r1.104
--- customWidgets.py 3 Mar 2004 22:32:53 -0000 1.103
+++ customWidgets.py 3 Mar 2004 23:56:50 -0000 1.104
@@ -195,7 +195,9 @@
self.imgmenu.insertItem (self.env.wnd.globalslide.iconSet(), "F&ullscreen", \
self.onFullScreen) self.imgmenu.insertSeparator()
self.imgmenu.insertItem ( "&External program ...", self.onExec)
- self.imgmenu.insertItem ( "Set as desktop bac&kground", self.onSetBg)
+ import sys
+ if sys.platform.find('win') == -1: # *nix platform. This option is \
currently only available on *NIX + self.imgmenu.insertItem ( "Set as \
desktop bac&kground", self.onSetBg) self.imgmenu.insertSeparator()
self.imgmenu.insertItem ( self.env.wnd.fileSaveAction.iconSet(),"&Save as \
displayed ...", self.onSaveDisp)
self.imgmenu.insertItem ( self.env.wnd.fileSaveAsAction.iconSet(),"&Save \
original to ...", self.onCopyImageMenu) @@ -208,7 +210,7 @@
def onSetBg(self):
if sys.platform.find('win') != -1: # windows platform
- pass #TODO: port to windows
+ pass #TODO: port to windows, and update the method above this one
else:
from Settings import binpathfinder
prog = binpathfinder("bsetbg")
Index: imgSeekApp.py
===================================================================
RCS file: /cvsroot/imgseek/imgseek/imgSeekLib/imgSeekApp.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- imgSeekApp.py 3 Mar 2004 23:37:30 -0000 1.31
+++ imgSeekApp.py 3 Mar 2004 23:56:50 -0000 1.32
@@ -281,7 +281,7 @@
if sys.platform.find('win') != -1: #windows platform
try:
- import win32api,win32file
+ import win32api, win32file
drives = [drive for drive in \
win32api.GetLogicalDriveStrings().split('\x00')[:-1] if win32file.GetDriveType(drive) \
in [win32file.DRIVE_FIXED,win32file.DRIVE_CDROM, win32file.DRIVE_REMOVABLE]] for \
drive in drives: nixPopulate(drive)
@@ -631,9 +631,10 @@
self.lastIconDisplayAction = [self.sysDirCallback,fname]
if os.path.isdir(fname):
fname = fname+os.sep
- if self.BrowseIconView.shownID==fname:return
+ if self.BrowseIconView.shownID == fname: # already displayed
+ return
self.BrowseIconView.shownID = fname
- flist = []
+ flist = [] # will hold list of all filenames to display
try:
for file in os.listdir(fname):
file = fname+file
@@ -1787,6 +1788,7 @@
return
def gohomebtn_clicked(self):
+ #TODO0: im getting a "path not found" error on win32 here
fuln = os.path.expanduser("~/")
self.BrowseSysDirListView.showPath(fuln)
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Imgseek-commits mailing list
Imgseek-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imgseek-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic