wnd-commit Mailing List for wnd (Page 9)
Status: Alpha
Brought to you by:
jurner
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(125) |
Jun
|
Jul
(138) |
Aug
(13) |
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: jürgen u. <cer...@us...> - 2005-05-15 10:01:22
|
Update of /cvsroot/wnd/wnd/wnd_doc/doc/controls/control classes/checkbox In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7940 Modified Files: checkbox.dtpl Log Message: bit of this and a bit of that Index: checkbox.dtpl =================================================================== RCS file: /cvsroot/wnd/wnd/wnd_doc/doc/controls/control classes/checkbox/checkbox.dtpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** checkbox.dtpl 29 Apr 2005 15:18:29 -0000 1.1.1.1 --- checkbox.dtpl 15 May 2005 10:01:11 -0000 1.2 *************** *** 246,249 **** --- 246,257 ---- lp=allways zero<br> <br><br> + + <DT>'destroy' + <DD>the control is about to be destroyed<br> + wp=allways zero<br> + lp=allways zero + <br><br> + + <DT>'unchecked' (*) <DD> the user unchecked the checkbox<br> *************** *** 251,254 **** --- 259,263 ---- lp=allways zero<br> <br><br> + <DT>'graychecked' (*) <DD> the user graychecked the checkbox<br> *************** *** 256,259 **** --- 265,269 ---- lp=allways zero<br> <br><br> + <DT>'setfocus' <DD>the checkbox has received keyboard focus<br> *************** *** 262,265 **** --- 272,276 ---- lp=allways zero<br> <br><br> + <DT>'killfocus' <DD>the checkbox has lost keyboard focus<br> |
From: jürgen u. <cer...@us...> - 2005-05-15 10:00:48
|
Update of /cvsroot/wnd/wnd/wnd_doc/doc/controls/control classes/button In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7860 Modified Files: button.dtpl Log Message: bit of this and a bit of that Index: button.dtpl =================================================================== RCS file: /cvsroot/wnd/wnd/wnd_doc/doc/controls/control classes/button/button.dtpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** button.dtpl 29 Apr 2005 15:17:42 -0000 1.1.1.1 --- button.dtpl 15 May 2005 10:00:39 -0000 1.2 *************** *** 189,192 **** --- 189,200 ---- <br><br> + + <DT>'destroy' + <DD>the control is about to be destroyed<br> + wp=allways zero<br> + lp=allways zero + <br><br> + + <DT>'drawitem' <DD><br>Notifies you that the Button needs drawing.<br> |
From: jürgen u. <cer...@us...> - 2005-05-15 10:00:21
|
Update of /cvsroot/wnd/wnd/wnd_doc/doc/controls/control classes/BLANK In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7706 Modified Files: blank.dtpl Log Message: bit of this and a bit of that Index: blank.dtpl =================================================================== RCS file: /cvsroot/wnd/wnd/wnd_doc/doc/controls/control classes/BLANK/blank.dtpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** blank.dtpl 29 Apr 2005 15:17:11 -0000 1.1.1.1 --- blank.dtpl 15 May 2005 10:00:10 -0000 1.2 *************** *** 100,101 **** --- 100,112 ---- + ::site:: Blank messages + A Blank sends the following messages to the message + handler:<br><br> + + <DL> + <DT>'destroy' + <DD>the control is about to be destroyed<br> + wp=allways zero<br> + lp=allways zero + <br><br> + </DL> \ No newline at end of file |
From: jürgen u. <cer...@us...> - 2005-05-15 09:58:53
|
Update of /cvsroot/wnd/wnd/wnd_doc/doc/controls/control classes/animation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7534 Modified Files: animation.dtpl Log Message: bit of this and a bit of that Index: animation.dtpl =================================================================== RCS file: /cvsroot/wnd/wnd/wnd_doc/doc/controls/control classes/animation/animation.dtpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** animation.dtpl 29 Apr 2005 15:18:03 -0000 1.1.1.1 --- animation.dtpl 15 May 2005 09:58:42 -0000 1.2 *************** *** 25,33 **** ::site:: Animation messages ! An Animation control is subclassed by default but does ! not send any messages to the message handler ! ! ::site:: Animation styles The following styles are used with Animation controls:<br><br> --- 25,42 ---- ::site:: Animation messages ! An animation control sends the following messages to the message ! handler:<br><br> ! ! <DL> ! <DT>'destroy' ! <DD>the control is about to be destroyed<br> ! wp=allways zero<br> ! lp=allways zero ! <br><br> ! </DL> ! ! ! ::site:: Animation styles The following styles are used with Animation controls:<br><br> |
From: jürgen u. <cer...@us...> - 2005-05-15 09:58:29
|
Update of /cvsroot/wnd/wnd/wnd_doc/doc/controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7472 Modified Files: controls.dtpl Log Message: bit of this and a bit of that Index: controls.dtpl =================================================================== RCS file: /cvsroot/wnd/wnd/wnd_doc/doc/controls/controls.dtpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** controls.dtpl 29 Apr 2005 15:17:00 -0000 1.1.1.1 --- controls.dtpl 15 May 2005 09:58:20 -0000 1.2 *************** *** 199,206 **** (MyControl1, 0, 0, 100, 100) (MyControl2, 0, 110, 100, 100) ! (MyControl3, 0, 220, 100, 100) ) </pre> </P> --- 199,213 ---- (MyControl1, 0, 0, 100, 100) (MyControl2, 0, 110, 100, 100) ! (MyControl3, None, None, 100, 100) ) </pre> + <br><br> + You can adjust the behaviour of DeferWindows by either + setting x- or y-parameter for a window to None, to prevent moving of + the window, or by setting w- or h-parameter to None, to pevent sizing + of the window. + + </P> |
From: jürgen u. <cer...@us...> - 2005-05-15 09:57:49
|
Update of /cvsroot/wnd/wnd/wnd_doc/doc/api/winpath In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7390 Added Files: winpath.dtpl Log Message: new module --- NEW FILE: winpath.dtpl --- ::site:: winpath This modue contains sevaral path functions from ahlwapi.dll <br><br> Use these for fast processing path operations <br><br> ::folder:: path methods ::item:: AddBackslash <code>AddBackslash(path)</code><br> <P>Adds a backslash to pathid required. <br><br> If path alreaddy ends with a backslash, no backslash is appended </P> ::item:: GetExtension <code>GetExtension(path)</code><br> <P>Returns the extension of path or '' (empty string) if no extension was found </P> ::item:: GetFileName <code>GetFileName(path)</code><br> <P>Returns the filename part of path or None if no filename was found. </P> ::item:: AddExtension <code>AddExtension(path, ext)</code><br> <P>Adds the specified aextension to path. <br><br> If the extension could not be added an error is raised. This will happen for example if path alreaddy has an extension </P> ::item:: Append <code>Append(path1, path2)</code><br> <P>appends path2 to path1 and returns the resulting path </P> ::item:: BuiltRoot <code>BuiltRoot(n)</code><br> <P>Builts the root path according to the specified drive number or '' (empty string) if not unsuccessfull <br><br> BuiltRoot(1) should return 'B:\\' </P> ::item:: Combine <code>Combine(path1, path2)</code><br> <P>Combines two paths and returns the resulting path </P> ::item:: Compact <code>Compact(hDC, hFont, path, cx)</code><br> <P>Compacts a path to fit into the specified pixel width and returns it compacted. <br><br> If something goes wrong the path is returned unchanged <br><br> <DL> <DT>hDC <DD>handle of the device context to use <DT>hFont <DD>the font to refere to for compacting. If hFont is None the current font of the dc is used <DT>path <DD>the path to compact <DT>cx <DD>the width in pixels the path is supposed to fit in </DL> <br><br> The returned path may be padded with ellipses up to the filename part of the path. </P> ::item:: Exists <code> Exists(path)</code><br> <P>Returns true if the file or folder pointed to by path exists, False otherwise </P> ::item:: Iter <code>Iter(path)</code><br> <P>Iterates over path returning the next component in turn. <br><br> <pre> path.Iter(aaa\\bbb\\ccc) >> c:\\aaa\\bbb\\ccc >> bbb\\ccc >> ccc </pre> </P> ::item:: IterReverted <code>IterReverted(path)</code><br> <P>Iterates over path returning the next component in turn <br><br> Variation of <a HREF="Iter.html">Iter</a>. Home brewn api, the like. Instead of returning the next component in turn it returns everything up to the previous component. component. <br><br> <pre> path.IterReversed(aaa\\bbb\\ccc) >> c:\\aaa\\bbb\\ccc >> c:\\aaa\\bbb >> c:\\aaa >> c:\\ </pre> </P> ::item:: GetArgs <code>GetArgs(path)</code><br> <P>returns everything that follows path, one could interpret as arguments or None, if no args where found </P> ::item:: GetDriveNumber <code>GetDriveNumber(path)</code><br> <P>Returns the drive number found in path or None. </P> ::item:: IsDir <code>IsDir(path)</code><br> <P>Returns true if path points to a directory, False otherwise </P> ::item:: IsURL <code>IsURL(path)</code><br> <P>returns true if path seems to be a valid path for an URL, False otherwise </P> ::item:: MatchSpec <code>MatchSpec(path, spec)</code><br> <P>Returns true if path matches the specified spec, False otherwise. <br><br> DOS wildcards welcome.<br> IsSpec('myPath.txt', '*.txt') should return True. </P> ::item:: QuoteSpaces <code>QuoteSpaces(path)</code><br> <P>Quotes the path if it contains spaces and returns it </P> ::item:: RemoveArgs <code>RemoveArgs(path)</code><br> <P>Removes args from path and returns the stripped path <br><br> If soething goes wrong the path is returned unchanged </P> ::item:: RemoveFileSpec <code>RemoveFileSpec(path)</code><br> <P>Removes the trailing part of path and returns the resulting path <br><br> If soething goes wrong the path is returned unchanged </P> ::item:: RemoveExtension <code>RemoveExtension(path)</code><br> <P>removes the extension from path and returns it <br><br> If soething goes wrong the path is returned unchanged </P> ::item:: ReplaceExtension <code>ReplaceExtension(path, ext)</code><br> <P>replaces the extension of path and returns the path or None if something goes wrong. <br><br> If soething goes wrong the path is returned unchanged </P> ::item:: StripRoot <code>StripRoot(path)</code><br> <P>Returns path with root stripped or None if something goes wrong </P> ::item:: StripPath <code>StripPath(path)</code><br> <P>removes all path components from path and returns it </P> ::item:: GetRoot <code>GetRoot(path)</code><br> <P>returns the root of path or None if something goes wrong </P> ::item:: UnquoteSpaces <code>UnquoteSpaces(path)</code><br> <P>Removes quotes from path if necessary and return it </P> ::item:: IsRoot <code>IsRoot(path)</code><br> <P>returns true if path is a root path, False otherwise <br><br> This is true for c:\\ but not for c: </P> |
From: jürgen u. <cer...@us...> - 2005-05-15 09:56:42
|
Update of /cvsroot/wnd/wnd/wnd_doc/doc/api/winpath In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7319/winpath Log Message: Directory /cvsroot/wnd/wnd/wnd_doc/doc/api/winpath added to the repository |
From: jürgen u. <cer...@us...> - 2005-05-15 09:55:37
|
Update of /cvsroot/wnd/wnd/wnd_doc/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7172 Modified Files: wnd.dtpl Log Message: bit of this and a bit of that Index: wnd.dtpl =================================================================== RCS file: /cvsroot/wnd/wnd/wnd_doc/doc/wnd.dtpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wnd.dtpl 1 May 2005 15:11:20 -0000 1.2 --- wnd.dtpl 15 May 2005 09:55:11 -0000 1.3 *************** *** 3,7 **** ::compiler-font:: Tahoma,10 ::compiler-defaulttopic:: wnd ! ::compiler-errorlog:: False ::compiler-keepprojectfiles:: False ::compiler-keepsitelog:: False --- 3,7 ---- ::compiler-font:: Tahoma,10 ::compiler-defaulttopic:: wnd ! ::compiler-errorlog:: True ::compiler-keepprojectfiles:: False ::compiler-keepsitelog:: False |
From: jürgen u. <cer...@us...> - 2005-05-15 09:54:38
|
Update of /cvsroot/wnd/wnd/wnd/unittests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7070 Added Files: testhelpers.py teststandalone.py Log Message: moved up from unittests/controls --- NEW FILE: testhelpers.py --- import os, array os_join=os.path.join os_split= os.path.split os_splitext=os.path.splitext #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: class Helpers: """Adds some helper methods, a message cache to a controls test suite""" def __init__(self): self.cache= [] self.ctrl.onMSG=self.onMSG def onMSG(self, *params): self.cache.append(params) # def GetMsg(self, msg): """Retrieves a message in the cache and returns it. Returns the message if found, False otherwise""" flag= False for n, i in enumerate(self.cache): if i[1]==msg: flag= True break if flag: msg= self.cache[n] del self.cache[n] return msg return flag def PeekMsg(self, msg): """peeks a message in the cache an dremoves it if found. Return True if the message was found, False otherwise""" flag= False for n, i in enumerate(self.cache): if i[1]==msg: flag= True if flag: del self.cache[n] return flag def ClearMsgCache(self): self.cache= [] #************************************************************** #************************************************************** class LineBuffer: """Helper class. Interface between stream output and listview input.""" def __init__(self): self.array = array.array self.buff =self.array('c') def flush(self): """Flushes the buffer in an iterator loop, returning the contents of the buffer linewise. Currently not needed.""" out = [] while True: try: n = self.buff.index('\n') p = self.buff[:n].tostring() del self.buff[:n+1] yield p except: n = self.buff.buffer_info( )[1] if n: p = self.buff[:n].tostring() del self.buff[:n] yield p else: break def write(self, chars): """Writes chars to the buffer and returns the next line if there is a complete line, else returns None.""" if len(chars)==1: self.buff.append(chars) else: p = self.array('c', chars) self.buff.extend(p) try: n = self.buff.index('\n') p = self.buff[:n].tostring() del self.buff[:n+1] return p except: return None #*********************************************************** #*********************************************************** def RemovePyc(path): root, dirs, files = os.walk(path).next() for i in files: if os_splitext(i)[1].lower()==".pyc": os.remove(os_join(root, i)) --- NEW FILE: teststandalone.py --- """helper for developing unittests. When run from commandline a unittest will be atatched to this window. Default is to run unittests from the main GUI. This enshures most framework independend processing possible """ import unittest, wnd #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: VERBOSITY= 2 class Main: def __init__(self): self.mainframe= wnd.Window('unittest-standalone', 'test', 10, 10, 400, 300, 'sysmenu') self.Hwnd= self.mainframe.Hwnd def RunTest(self, suite): suite=unittest.TestSuite(suite()) unittest.TextTestRunner(verbosity=VERBOSITY).run(suite) |
Update of /cvsroot/wnd/wnd/wnd/unittests/controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6818 Modified Files: test_checkbox.py test_combobox.py test_groupbox.py test_header.py test_listview.py test_radiobox.py testall.py Log Message: ?? Index: test_checkbox.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/unittests/controls/test_checkbox.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** test_checkbox.py 29 Apr 2005 15:25:50 -0000 1.1.1.1 --- test_checkbox.py 15 May 2005 09:52:24 -0000 1.2 *************** *** 7,14 **** PARENT= None PATH= os.path.split(__file__)[0] ! PATH_STANDALONE= os.path.join(PATH, 'teststandalone.py') ! PATH_HELPERS= os.path.join(PATH, 'testhelpers.py') - helpers= imp.load_source('helpers', PATH_HELPERS) #***************************************************************** --- 7,17 ---- PARENT= None PATH= os.path.split(__file__)[0] ! DIRUP= os.path.split(PATH)[0] ! ! PATH_STANDALONE= os.path.join(DIRUP, 'teststandalone.py') ! PATH_HELPERS= os.path.join(DIRUP, 'testhelpers.py') ! ! helpers= imp.load_source('helpers',PATH_HELPERS) #***************************************************************** Index: test_radiobox.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/unittests/controls/test_radiobox.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** test_radiobox.py 29 Apr 2005 15:25:49 -0000 1.1.1.1 --- test_radiobox.py 15 May 2005 09:52:24 -0000 1.2 *************** *** 6,13 **** PARENT= None PATH= os.path.split(__file__)[0] ! PATH_STANDALONE= os.path.join(PATH, 'teststandalone.py') ! PATH_HELPERS= os.path.join(PATH, 'testhelpers.py') - helpers= imp.load_source('helpers', PATH_HELPERS) #***************************************************************** --- 6,16 ---- PARENT= None PATH= os.path.split(__file__)[0] ! DIRUP= os.path.split(PATH)[0] ! ! PATH_STANDALONE= os.path.join(DIRUP, 'teststandalone.py') ! PATH_HELPERS= os.path.join(DIRUP, 'testhelpers.py') ! ! helpers= imp.load_source('helpers',PATH_HELPERS) #***************************************************************** Index: test_listview.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/unittests/controls/test_listview.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** test_listview.py 29 Apr 2005 15:25:40 -0000 1.1.1.1 --- test_listview.py 15 May 2005 09:52:24 -0000 1.2 *************** *** 20,27 **** PARENT= None PATH= os.path.split(__file__)[0] ! PATH_STANDALONE= os.path.join(PATH, 'teststandalone.py') ! PATH_HELPERS= os.path.join(PATH, 'testhelpers.py') - helpers= imp.load_source('helpers', PATH_HELPERS) #***************************************************************** --- 20,30 ---- PARENT= None PATH= os.path.split(__file__)[0] ! DIRUP= os.path.split(PATH)[0] ! ! PATH_STANDALONE= os.path.join(DIRUP, 'teststandalone.py') ! PATH_HELPERS= os.path.join(DIRUP, 'testhelpers.py') ! ! helpers= imp.load_source('helpers',PATH_HELPERS) #***************************************************************** Index: testall.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/unittests/controls/testall.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** testall.py 29 Apr 2005 15:25:45 -0000 1.1.1.1 --- testall.py 15 May 2005 09:52:24 -0000 1.2 *************** *** 18,24 **** VERBOSITY= 2 PATH= os.path.split(__file__)[0] ! PATH_HELPERS= os.path.join(PATH, 'testhelpers.py') ! helpers= imp.load_source('helpers', PATH_HELPERS) #************************************************************** --- 18,30 ---- VERBOSITY= 2 + PARENT= None PATH= os.path.split(__file__)[0] ! DIRUP= os.path.split(PATH)[0] ! ! PATH_STANDALONE= os.path.join(DIRUP, 'teststandalone.py') ! PATH_HELPERS= os.path.join(DIRUP, 'testhelpers.py') ! ! helpers= imp.load_source('helpers',PATH_HELPERS) ! #************************************************************** Index: test_combobox.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/unittests/controls/test_combobox.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** test_combobox.py 29 Apr 2005 15:25:32 -0000 1.1.1.1 --- test_combobox.py 15 May 2005 09:52:24 -0000 1.2 *************** *** 18,25 **** PARENT= None PATH= os.path.split(__file__)[0] ! PATH_STANDALONE= os.path.join(PATH, 'teststandalone.py') ! PATH_HELPERS= os.path.join(PATH, 'testhelpers.py') ! helpers= imp.load_source('helpers', PATH_HELPERS) --- 18,27 ---- PARENT= None PATH= os.path.split(__file__)[0] ! DIRUP= os.path.split(PATH)[0] ! PATH_STANDALONE= os.path.join(DIRUP, 'teststandalone.py') ! PATH_HELPERS= os.path.join(DIRUP, 'testhelpers.py') ! ! helpers= imp.load_source('helpers',PATH_HELPERS) Index: test_groupbox.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/unittests/controls/test_groupbox.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** test_groupbox.py 29 Apr 2005 15:25:46 -0000 1.1.1.1 --- test_groupbox.py 15 May 2005 09:52:24 -0000 1.2 *************** *** 8,15 **** PARENT= None PATH= os.path.split(__file__)[0] ! PATH_STANDALONE= os.path.join(PATH, 'teststandalone.py') ! PATH_HELPERS= os.path.join(PATH, 'testhelpers.py') ! helpers= imp.load_source('helpers', PATH_HELPERS) --- 8,17 ---- PARENT= None PATH= os.path.split(__file__)[0] ! DIRUP= os.path.split(PATH)[0] ! PATH_STANDALONE= os.path.join(DIRUP, 'teststandalone.py') ! PATH_HELPERS= os.path.join(DIRUP, 'testhelpers.py') ! ! helpers= imp.load_source('helpers',PATH_HELPERS) Index: test_header.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/unittests/controls/test_header.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** test_header.py 29 Apr 2005 15:25:34 -0000 1.1.1.1 --- test_header.py 15 May 2005 09:52:24 -0000 1.2 *************** *** 16,23 **** PARENT= None PATH= os.path.split(__file__)[0] ! PATH_STANDALONE= os.path.join(PATH, 'teststandalone.py') ! PATH_HELPERS= os.path.join(PATH, 'testhelpers.py') - helpers= imp.load_source('helpers', PATH_HELPERS) #***************************************************************** --- 16,26 ---- PARENT= None PATH= os.path.split(__file__)[0] ! DIRUP= os.path.split(PATH)[0] ! ! PATH_STANDALONE= os.path.join(DIRUP, 'teststandalone.py') ! PATH_HELPERS= os.path.join(DIRUP, 'testhelpers.py') ! ! helpers= imp.load_source('helpers',PATH_HELPERS) #***************************************************************** |
From: jürgen u. <cer...@us...> - 2005-05-15 09:52:38
|
Update of /cvsroot/wnd/wnd/wnd/unittests/controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6732 Removed Files: teststandalone.py Log Message: moved to unittests folder --- teststandalone.py DELETED --- |
From: jürgen u. <cer...@us...> - 2005-05-15 09:51:18
|
Update of /cvsroot/wnd/wnd/wnd/unittests/controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6596 Modified Files: test_button.py Log Message: ?? Index: test_button.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/unittests/controls/test_button.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** test_button.py 29 Apr 2005 15:25:47 -0000 1.1.1.1 --- test_button.py 15 May 2005 09:50:40 -0000 1.2 *************** *** 9,16 **** PARENT= None PATH= os.path.split(__file__)[0] ! PATH_STANDALONE= os.path.join(PATH, 'teststandalone.py') ! PATH_HELPERS= os.path.join(PATH, 'testhelpers.py') ! helpers= imp.load_source('helpers', PATH_HELPERS) --- 9,18 ---- PARENT= None PATH= os.path.split(__file__)[0] ! DIRUP= os.path.split(PATH)[0] ! PATH_STANDALONE= os.path.join(DIRUP, 'teststandalone.py') ! PATH_HELPERS= os.path.join(DIRUP, 'testhelpers.py') ! ! helpers= imp.load_source('helpers',PATH_HELPERS) |
From: jürgen u. <cer...@us...> - 2005-05-15 09:50:33
|
Update of /cvsroot/wnd/wnd/wnd/unittests/controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6550 Modified Files: test_anim.py Log Message: ?? Index: test_anim.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/unittests/controls/test_anim.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** test_anim.py 29 Apr 2005 15:25:45 -0000 1.1.1.1 --- test_anim.py 15 May 2005 09:50:24 -0000 1.2 *************** *** 8,16 **** PARENT= None PATH= os.path.split(__file__)[0] ! PATH_STANDALONE= os.path.join(PATH, 'teststandalone.py') ! PATH_HELPERS= os.path.join(PATH, 'testhelpers.py') ! helpers= imp.load_source('helpers', PATH_HELPERS) ANIM_PATH= os.path.join(PATH, 'sample.avi') --- 8,17 ---- PARENT= None PATH= os.path.split(__file__)[0] ! DIRUP= os.path.split(PATH)[0] ! PATH_STANDALONE= os.path.join(DIRUP, 'teststandalone.py') ! PATH_HELPERS= os.path.join(DIRUP, 'testhelpers.py') + helpers= imp.load_source('helpers',PATH_HELPERS) ANIM_PATH= os.path.join(PATH, 'sample.avi') |
From: jürgen u. <cer...@us...> - 2005-05-15 09:50:23
|
Update of /cvsroot/wnd/wnd/wnd/unittests/controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6456 Added Files: sample.avi Log Message: sample ani for animation control --- NEW FILE: sample.avi --- (This appears to be a binary file; contents omitted.) |
From: jürgen u. <cer...@us...> - 2005-05-15 09:48:50
|
Update of /cvsroot/wnd/wnd/wnd/unittests/controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6315 Modified Files: .CVSIGNORE Log Message: ?? Index: .CVSIGNORE =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/unittests/controls/.CVSIGNORE,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** .CVSIGNORE 29 Apr 2005 15:25:51 -0000 1.1.1.1 --- .CVSIGNORE 15 May 2005 09:48:31 -0000 1.2 *************** *** 1,3 **** *.pyc *.pyo ! *.avi --- 1,3 ---- *.pyc *.pyo ! |
From: jürgen u. <cer...@us...> - 2005-05-15 09:48:14
|
Update of /cvsroot/wnd/wnd/wnd/unittests/controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6270 Removed Files: testhelpers.py Log Message: moved to unittest folder --- testhelpers.py DELETED --- |
From: jürgen u. <cer...@us...> - 2005-05-15 09:47:02
|
Update of /cvsroot/wnd/wnd/wnd/unittests/api In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6070 Added Files: test_shell.py Log Message: new unittest --- NEW FILE: test_shell.py --- import dbg from wnd.api import shell from ctypes.com.mallocspy import MallocSpy m= MallocSpy() import unittest, imp, os, sys #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: PARENT= None PATH= os.path.split(__file__)[0] DIRUP= os.path.split(PATH)[0] PATH_STANDALONE= os.path.join(DIRUP, 'teststandalone.py') PATH_HELPERS= os.path.join(DIRUP, 'testhelpers.py') helpers= imp.load_source('helpers',PATH_HELPERS) #***************************************************************** # #******************************************************************* class TestPidls(unittest.TestCase,): def setUp(self): self.sh= shell.ShellNamespace() def tearDown(self): self.sh.Close() def test_PidlEnum(self): pIdl= self.sh.ParseDisplayName(sys.prefix) self.failIf(not pIdl) self.failUnless(shell.Malloc.GetSize(pIdl)) ## dono what to test here for for i in shell.PidlEnum(pIdl): pass shell.PidlFree(pIdl) self.failUnless(shell.Malloc.GetSize(pIdl)== 0) def test_PidlGetParent(self): pIdl= self.sh.ParseDisplayName(sys.prefix) self.failIf(not pIdl) self.failUnless(shell.Malloc.GetSize(pIdl)) pIdl2= shell.PidlCopy(pIdl) self.failIf(not pIdl2) shell.PidlGetParent(pIdl) pIdlChild= shell.PidlSplit(pIdl2) self.failIf(not pIdlChild) pIdl3= shell.PidlJoin(pIdl, pIdlChild) self.failIf(not pIdl3) self.failUnless(self.sh.GetParseName(pIdl).lower()== \ os.path.split(sys.prefix)[0].lower()) self.failUnless(self.sh.GetParseName(pIdl3).lower()== \ sys.prefix.lower()) shell.PidlFree(pIdl) shell.PidlFree(pIdl2) shell.PidlFree(pIdl3) shell.PidlFree(pIdlChild) self.failUnless(shell.Malloc.GetSize(pIdl)== \ shell.Malloc.GetSize(pIdl2)== \ shell.Malloc.GetSize(pIdlChild)== \ 0) def test_PidlSplit(self): pIdl= self.sh.ParseDisplayName(sys.prefix) self.failIf(not pIdl) self.failUnless(shell.Malloc.GetSize(pIdl)) pIdlChild= shell.PidlSplit(pIdl) self.failIf(not pIdlChild) pIdl2= shell.PidlJoin(pIdl, pIdlChild) self.failIf(not pIdl2) self.failUnless(self.sh.GetParseName(pIdl).lower()== \ os.path.split(sys.prefix)[0].lower()) self.failUnless(self.sh.GetParseName(pIdl2).lower()== \ sys.prefix.lower()) shell.PidlFree(pIdl) shell.PidlFree(pIdl2) shell.PidlFree(pIdlChild) self.failUnless(shell.Malloc.GetSize(pIdl)== \ shell.Malloc.GetSize(pIdl2)== \ shell.Malloc.GetSize(pIdlChild)== \ 0) def test_PidlFree(self): pIdl= self.sh.ParseDisplayName(sys.prefix) self.failIf(not pIdl) self.failUnless(shell.Malloc.GetSize(pIdl)) shell.PidlFree(pIdl) self.failIf(shell.Malloc.GetSize(pIdl)) def test_PidlCopy(self): pIdl= self.sh.ParseDisplayName(sys.prefix) pIdl2= shell.PidlCopy(pIdl) self.failUnless(self.sh.GetParseName(pIdl).lower()== \ self.sh.GetParseName(pIdl2).lower()== \ sys.prefix.lower()) self.failIf(not pIdl or not pIdl2) self.failUnless(buffer(pIdl[0])[:]==buffer(pIdl2[0])[:]) shell.PidlFree(pIdl) shell.PidlFree(pIdl2) self.failUnless(shell.Malloc.GetSize(pIdl)== \ shell.Malloc.GetSize(pIdl2)== \ 0) #************************************************************************ def suite(): return (unittest.makeSuite(TestPidls), ) PARENT= None if __name__=='__main__': mod= imp.load_source('foo', PATH_STANDALONE) PARENT= mod.Main() PARENT.RunTest(suite) helpers.RemovePyc(PATH) |
From: jürgen u. <cer...@us...> - 2005-05-15 09:45:20
|
Update of /cvsroot/wnd/wnd/wnd/unittests/api In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5878/api Log Message: Directory /cvsroot/wnd/wnd/wnd/unittests/api added to the repository |
From: jürgen u. <cer...@us...> - 2005-05-15 09:44:01
|
Update of /cvsroot/wnd/wnd/wnd/res/icons In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5504 Modified Files: icons1.py Log Message: ?? Index: icons1.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/res/icons/icons1.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** icons1.py 29 Apr 2005 15:24:51 -0000 1.1.1.1 --- icons1.py 15 May 2005 09:43:51 -0000 1.2 *************** *** 16,20 **** BITS, W, H= 1, 32, 32 MASK= '\xe0\x00\x01\xff\xe0\x00\x00\xff\xe0\x00\x00\x7f\xe0\x00\x00?\xe0\x00\x00\x1f\xe0\x00\x00\x0f\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07' ! COLOR= '\x1f\xff\xfe\x00\x1f\xff\xfe\x00\x1f\xff\xff\x00\x1f\xff\xff\x80\x1f\xff\xff\xc0\x1f\xff\xff\xe0\x1f\xff\xfe\x00\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xfe\xff\xf0\x1f\xfe\x7f\xf0\x1f\xfc\x7f\xf0\x1f\xfc?\xf0\x1f\xfa?\xf0\x1f\xfa\x1f\xf0\x1f\xf7\x1f\xf0\x1f\xf7\x0f\xf0\x1f\xef\x8f\xf0\x1f\xef\x87\xf0\x1f\xdf\xc7\xf0\x1f\xc0\x03\xf0\x1f\xbf\xc3\xf0\x1f\xbf\xe1\xf0\x1f\x7f\xe1\xf0\x1c\x0f\x80p\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x00\x00\x00\x00' return IconFromBytes(MASK, COLOR, BITS, W, H) --- 16,20 ---- BITS, W, H= 1, 32, 32 MASK= '\xe0\x00\x01\xff\xe0\x00\x00\xff\xe0\x00\x00\x7f\xe0\x00\x00?\xe0\x00\x00\x1f\xe0\x00\x00\x0f\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07' ! COLOR= '\x00\x00\x00\x00\x0f\xff\xfc\x00\x0f\xff\xfc\x00\x0f\xff\xfd\x00\x0f\xff\xfd\x80\x0f\xff\xfd\xc0\x0f\xff\xfc\x00\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x0f\xfe\xff\xf0\x0f\xfe\x7f\xf0\x0f\xfc\x7f\xf0\x0f\xfc?\xf0\x0f\xfa?\xf0\x0f\xfa\x1f\xf0\x0f\xf7\x1f\xf0\x0f\xf7\x0f\xf0\x0f\xef\x8f\xf0\x0f\xef\x87\xf0\x0f\xdf\xc7\xf0\x0f\xc0\x03\xf0\x0f\xbf\xc3\xf0\x0f\xbf\xe1\xf0\x0f\x7f\xe1\xf0\x0c\x0f\x80p\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x00\x00\x00\x00' return IconFromBytes(MASK, COLOR, BITS, W, H) *************** *** 25,29 **** BITS, W, H= 1, 32, 32 MASK= '\xe0\x00\x01\xff\xe0\x00\x00\xff\xe0\x00\x00\x7f\xe0\x00\x00?\xe0\x00\x00\x1f\xe0\x00\x00\x0f\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07' ! COLOR= '\x1f\xff\xfe\x00\x1f\xff\xfe\x00\x1f\xff\xff\x00\x1f\xff\xff\x80\x1f\xff\xff\xc0\x1f\xff\xff\xe0\x1f\xff\xfe\x00\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xf8\x00\xf0\x1f\xf9\x8c\xf0\x1f\xfb\x8e\xf0\x1f\xfb\x8e\xf0\x1f\xff\x8f\xf0\x1f\xff\x8f\xf0\x1f\xff\x8f\xf0\x1f\xff\x8f\xf0\x1f\xff\x8f\xf0\x1f\xff\x8f\xf0\x1f\xfe\x03\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x1f\xff\xff\xf0\x00\x00\x00\x00' return IconFromBytes(MASK, COLOR, BITS, W, H) --- 25,38 ---- BITS, W, H= 1, 32, 32 MASK= '\xe0\x00\x01\xff\xe0\x00\x00\xff\xe0\x00\x00\x7f\xe0\x00\x00?\xe0\x00\x00\x1f\xe0\x00\x00\x0f\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07\xe0\x00\x00\x07' ! COLOR= '\x00\x00\x00\x00\x0f\xff\xfc\x00\x0f\xff\xfc\x00\x0f\xff\xfd\x00\x0f\xff\xfd\x80\x0f\xff\xfd\xc0\x0f\xff\xfc\x00\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x0e\x00?\xf0\x0ec?\xf0\x0e\xe3\xbf\xf0\x0e\xe3\xbf\xf0\x0f\xe0\x00\xf0\x0f\xe1\x8c\xf0\x0f\xe3\x8e\xf0\x0f\xe3\x8e\xf0\x0f\xe3\x8f\xf0\x0f\xe3\x8f\xf0\x0f\x80\x8f\xf0\x0f\xff\x8f\xf0\x0f\xff\x8f\xf0\x0f\xff\x8f\xf0\x0f\xfe\x03\xf0\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x00\x00\x00\x00' ! return IconFromBytes(MASK, COLOR, BITS, W, H) ! ! ! def ico_arrowhead_right(): ! """small arrow head""" ! ! BITS, W, H= 1, 32, 32 ! MASK= '\xff\xff\xff\xff\xff\xff\xff\xff?\xff\xff\xff\x0f\xff\xff\xff\x03\xff\xff\xff\x00\xff\xff\xff\x00?\xff\xff\x00\x07\xff\xff\x00\x0f\xff\xff\x00?\xff\xff\x00\xff\xff\xff\x03\xff\xff\xff\x0f\xff\xff\xff\xbf\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' ! COLOR= '\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x00\x00\x00\xb0\x00\x00\x00\x8c\x00\x00\x00\x83\x00\x00\x00\x80\xc0\x00\x00\x800\x00\x00\x80\x00\x00\x00\x80\x00\x00\x00\x80\x00\x00\x00\x80\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' return IconFromBytes(MASK, COLOR, BITS, W, H) |
From: jürgen u. <cer...@us...> - 2005-05-15 09:42:23
|
Update of /cvsroot/wnd/wnd/wnd/res/icons In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4804 Modified Files: __init__.py Log Message: ?? Index: __init__.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/res/icons/__init__.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** __init__.py 29 Apr 2005 15:24:51 -0000 1.1.1.1 --- __init__.py 15 May 2005 09:42:15 -0000 1.2 *************** *** 0 **** --- 1 ---- + |
From: jürgen u. <cer...@us...> - 2005-05-15 09:41:07
|
Update of /cvsroot/wnd/wnd/wnd/res/cursors In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4336 Modified Files: __init__.py Log Message: ?? Index: __init__.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/res/cursors/__init__.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** __init__.py 29 Apr 2005 15:24:51 -0000 1.1.1.1 --- __init__.py 15 May 2005 09:40:58 -0000 1.2 *************** *** 0 **** --- 1 ---- + |
From: jürgen u. <cer...@us...> - 2005-05-15 09:40:44
|
Update of /cvsroot/wnd/wnd/wnd/res/autogen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4176 Modified Files: icons1.py Log Message: ?? Index: icons1.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/res/autogen/icons1.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** icons1.py 29 Apr 2005 15:24:49 -0000 1.1.1.1 --- icons1.py 15 May 2005 09:40:32 -0000 1.2 *************** *** 1,10 **** ! from wnd import gdi from wnd.res import pyres from ctypes import windll comctl32= windll.comctl32 #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ! path= r'D:\_scr_\py\Scr\wnd\res\icons\icons1.py' res= {"icons": [ --- 1,11 ---- ! import wnd from wnd import gdi from wnd.res import pyres from ctypes import windll + comctl32= windll.comctl32 #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ! path= '%s\\icons\\icons1.py' % wnd.WND_RESPATH res= {"icons": [ *************** *** 21,24 **** --- 22,32 ---- 32, 32), + ('ico_arrowhead_right', + 'small arrow head', + gdi.IconFromFile(r'D:\download\res\icons\76.ico'), + 1, + 32, + 32), + ] } |
From: jürgen u. <cer...@us...> - 2005-05-15 09:40:05
|
Update of /cvsroot/wnd/wnd/wnd/gdi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3917 Modified Files: region.py Log Message: bugfixes Index: region.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/gdi/region.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** region.py 29 Apr 2005 15:24:28 -0000 1.1.1.1 --- region.py 15 May 2005 09:39:56 -0000 1.2 *************** *** 1,4 **** ! from wnd.wintypes import RECT from ctypes import windll , byref from wnd.gdi.trackhandles import TrackHandler --- 1,4 ---- ! from wnd.wintypes import RECT, POINT from ctypes import windll , byref from wnd.gdi.trackhandles import TrackHandler *************** *** 30,34 **** def GetRect(self): rc = RECT() ! if notgdi32.GetRgnBox(self.handle, byref(rc)): raise RuntimeError("could not retrieve recangle") return rc --- 30,34 ---- def GetRect(self): rc = RECT() ! if not gdi32.GetRgnBox(self.handle, byref(rc)): raise RuntimeError("could not retrieve recangle") return rc *************** *** 131,136 **** handle = gdi32.CreateEllipticRgn(rect.left, rect.top, rect.right, rect.bottom) if not handle: raise RuntimeError("could not create region") ! self.ellipseheight = ellipseheight ! self.ellipsewidth = ellipsewidth DisposableRegion.__init__(self, handle) --- 131,136 ---- handle = gdi32.CreateEllipticRgn(rect.left, rect.top, rect.right, rect.bottom) if not handle: raise RuntimeError("could not create region") ! #self.ellipseheight = ellipseheight ! #self.ellipsewidth = ellipsewidth DisposableRegion.__init__(self, handle) |
From: jürgen u. <cer...@us...> - 2005-05-15 09:39:57
|
Update of /cvsroot/wnd/wnd/wnd/gdi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3737 Modified Files: icon.py Log Message: bugfixes Index: icon.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/gdi/icon.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** icon.py 29 Apr 2005 15:24:33 -0000 1.1.1.1 --- icon.py 15 May 2005 09:39:35 -0000 1.2 *************** *** 17,24 **** ! __all__= ("GetShellIconSize", "GetShellSmallIconSize", "SYSTEM_ICONS", "IconFromHandle", "DisposableIcon", "IconFromFile", "FileIcon", "SystemIcon", "IconFromBytes") #********************************************* # functions ! #------------------------------------------------------------------------------------------------ --- 17,45 ---- ! __all__= ("GetShellIconSize", "GetShellSmallIconSize", "SYSTEM_ICONS", "IconFromHandle", "DisposableIcon", "IconFromFile", "FileIcon", "SystemIcon", "IconFromBytes", "GetSysIconIndex") ! ! ! SYSTEM_ICONS = { ! 'application' : 32512, ! 'error' : 32513, ! 'hand' : 32513, ! 'question' : 32514, ! 'exclamation' : 32515, ! 'warning' : 32515, ! 'asterisk' : 32516, ! 'information' : 32516, ! 'winlogo' : 32517} ! ! FILEINFO_FLAGS={'linkoverlay' : 32768, ! 'selected' : 65536, ! 'largeicon' : 0, ! 'smallicon' : 1, ! 'openicon' : 2, ! 'shelliconsize' : 4} #'sysiconindex' : 4096 ! ! #********************************************* # functions ! #********************************************* *************** *** 52,55 **** --- 73,98 ---- return w.value, h.value + def GetSysIconIndex(path, *flags): + flag = 256|4096 # SHGFI_ICON|SHGFI_SYSICONINDEX + for i in flags: + try: flag |= FILEINFO_FLAGS[i] + except: raise ValueError("invalid flag: %s" % i) + + fileattributes = 0 + if path[0]=='*': + fileattributes = 128 # FILE_ATTRIBUTE_NORMAL + flag |= 16 # SHGFI_USEFILEATTRIBUTES + + if path=='directory': + fileattributes = 16 # FILE_ATTRIBUTE_DIRECTORY + flag |= 16 # SHGFI_USEFILEATTRIBUTES + + fi = SHFILEINFO() + if not shell32.SHGetFileInfoA(path, fileattributes, byref(fi), sizeof(SHFILEINFO), flag): + raise RuntimeError("could not retrieve icon") + user32.DestroyIcon(fi.hIcon) + return fi.iIcon + + #************************************************** *************** *** 60,83 **** - SYSTEM_ICONS = { - 'application' : 32512, - 'error' : 32513, - 'hand' : 32513, - 'question' : 32514, - 'exclamation' : 32515, - 'warning' : 32515, - 'asterisk' : 32516, - 'information' : 32516, - 'winlogo' : 32517} - - FILEINFO_FLAGS={'linkoverlay' : 32768, - 'selected' : 65536, - 'largeicon' : 0, - 'smallicon' : 1, - 'openicon' : 2, - 'shelliconsize' : 4} #'sysiconindex' : 4096 - - - class IconFromHandle(object): --- 103,106 ---- *************** *** 196,201 **** - - def Copy(self, w=None, h=None): flag = 0 --- 219,222 ---- *************** *** 209,213 **** - def Draw(self, dc, x, y): if not user32.DrawIcon(dc.handle, x, y, self.handle): --- 230,233 ---- *************** *** 274,278 **** #************************************************** ! class IconFromInstance(IconFromHandle): def __init__(self, instance, resname, w=0, h=0): --- 294,298 ---- #************************************************** ! class IconFromInstance(DisposableIcon): def __init__(self, instance, resname, w=0, h=0): *************** *** 295,299 **** # your processes imageist. ! class FileIcon(IconFromHandle): def __init__(self, path, *flags): --- 315,319 ---- # your processes imageist. ! class FileIcon(DisposableIcon): def __init__(self, path, *flags): *************** *** 301,305 **** flag = 256 # SHGFI_ICON for i in flags: - i = i.lower() try: flag |= FILEINFO_FLAGS[i] except: raise ValueError("invalid flag: %s" % i) --- 321,324 ---- *************** *** 314,322 **** flag |= 16 # SHGFI_USEFILEATTRIBUTES fi = SHFILEINFO() if not shell32.SHGetFileInfoA(path, fileattributes, byref(fi), sizeof(SHFILEINFO), flag): raise RuntimeError("could not retrieve icon") if not fi.hIcon: raise RuntimeError("could not retrieve icon") ! IconFromHandle.__init__(self, fi.hIcon) #************************************************ --- 333,342 ---- flag |= 16 # SHGFI_USEFILEATTRIBUTES + fi = SHFILEINFO() if not shell32.SHGetFileInfoA(path, fileattributes, byref(fi), sizeof(SHFILEINFO), flag): raise RuntimeError("could not retrieve icon") if not fi.hIcon: raise RuntimeError("could not retrieve icon") ! DisposableIcon.__init__(self, fi.hIcon) #************************************************ |
From: jürgen u. <cer...@us...> - 2005-05-15 09:39:44
|
Update of /cvsroot/wnd/wnd/wnd/gdi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3604 Modified Files: brush.py Log Message: bugfixes Index: brush.py =================================================================== RCS file: /cvsroot/wnd/wnd/wnd/gdi/brush.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** brush.py 29 Apr 2005 15:24:26 -0000 1.1.1.1 --- brush.py 15 May 2005 09:39:13 -0000 1.2 *************** *** 11,15 **** # #************************************************** ! __all__= ("BrushFromHandle", "DisposableBrush", "SolidBrush", "SysColorBrush", "PatternBrush") --- 11,15 ---- # #************************************************** ! __all__= ("BrushFromHandle", "DisposableBrush", "SolidBrush", "SysColorBrush", "PatternBrush", "StockBrush") *************** *** 23,26 **** --- 23,34 ---- 'whiteness':16711778} + STOCK_BRUSHES= { + 'whitebrush': 0, + 'ltgraybrush':1, + 'graybrush':2, + 'dkgraybrush':3, + 'blackbrush':4, + 'nullbrush':5} + #****************************************************************************************** *************** *** 93,98 **** #********************************************** class SysColorBrush(BrushFromHandle): ! """syscolorbrush class""" ! def __init__(self, colorname): from wnd.gdi import SYSTEM_COLORS --- 101,105 ---- #********************************************** class SysColorBrush(BrushFromHandle): ! def __init__(self, colorname): from wnd.gdi import SYSTEM_COLORS *************** *** 105,108 **** --- 112,127 ---- + #********************************************** + class StockBrush(BrushFromHandle): + + def __init__(self, brush): + + try: brush = STOCK_BRUSHES[brush] + except: raise ValueError("invalid brush: %s" % brush) + handle = gdi32.GetStockObject(brush) + if not handle: raise RuntimeError("could not retreieve stock brush") + BrushFromHandle.__init__(self, handle) + + #*********************************************** |