[python-win32] Tkinter newbie

2015-03-03 Thread John Sampson
I had spent a day trying to find a solution. Still, I know now one place I won't look for help. JS In case of a real person that wanted help: "We reap what we sow" or "ask niceley and show that you tried yourself to find a solution". ___ python-w

[python-win32] Tkinter newbie

2015-03-02 Thread John Sampson
it has to be x(self), why it has to be followed by '()' in one place but not in another, how the variables are scoped and similar questions. At the moment all my guesses are wrong. Are there any such examples? Regards John Sampson ___ py

[python-win32] Creating standalone executable

2015-01-07 Thread John Sampson
s subfolders. Are these still needed? If so, what if I make another standalone executable? Is there a need for another 'build' folder tree for it, to exist as well as the 'build' folder tree for the first standalone executable? Regards John Sampson On 06/01/2015 1

[python-win32] Creating standalone executable

2015-01-06 Thread John Sampson
that can be run in any folder, and nothing else - that is, standalone. Regards John Sampson On 06/01/2015 13:07, Graeme Glass wrote: Yes it is. http://www.py2exe.org/ http://cx-freeze.sourceforge.net/ On 6 January 2015 at 14:50, John Sampson <mailto:jrs@ntlworld.com>> wrote:

[python-win32] Creating standalone executable

2015-01-06 Thread John Sampson
Is it possible to create a standalone executable (.EXE file) from a Python script? By 'standalone' I mean an executable file that can be placed in any folder and contains or finds the libraries, modules etc. that it depends on. Regards Jo

[python-win32] Repr, and Unicode type [Was: Get key press in Windows 7]

2014-11-28 Thread John Sampson
In answer to Time Roberts, I saw an item prefixed with 'u' (u'\x1a'). What is the purpose of this prefix? I would have thought it meant 'Unicode' but the type according to Python is 'str'. Thank you for the explanation of 'repr'. The issue turned out to be the inclusion of 'repr' in the sample

[python-win32] Get key press in Windows 7

2014-11-27 Thread John Sampson
Many thanks - by excluding repr the code behaves in a comprehensible way. The example code that was provided at Stack Overflow included repr so I assumed that it was necessary for some reason. If I were allowed to comment there I would ask why. Regards John Sampson On 27/11/2014 18:26, Randy

[python-win32] Get key press in Windows 7

2014-11-27 Thread John Sampson
What type of object is a keystroke? Perhaps I need to find some other way for a Python script detect keystrokes but I am confused as to what Python sees them as. Any advice would be welcome. Regards John Sampson ___ python-win32 mailing list pyth

[python-win32] pythoncom

2014-10-20 Thread John Sampson
On 20/10/2014 11:27, Mark Hammond wrote: On 16/10/2014 8:25 pm, John Sampson wrote: at lib\site-packages\win32com\gen_py I see more files in the version causing trouble than in the version that works OK. How would I recognise the generated support you mention? Those files *are* the generated

[python-win32] pythoncom

2014-10-16 Thread John Sampson
On 16/10/2014 07:48, Mark Hammond wrote: On 16/10/2014 12:50 AM, John Sampson wrote: The interface has a function which returns a string from an array of strings as it is supposed to in Windows 64-bit, or if called from VBA. In 32-bit Windows Python it returns the number of the item in the

[python-win32] pythoncom

2014-10-15 Thread John Sampson
On 14/10/2014 18:15, Tim Roberts wrote: John Sampson wrote: I have a proprietary program with a command interface implemented as an ActiveX DLL. Importing win32com.client and pythoncom, I can call functions from Python scripts. Some of these work properly in 32-bit Windows 7, but others only in

[python-win32] pythoncom

2014-10-14 Thread John Sampson
work with Windows 64-bit only? Is there a version that works with 32-bit Windows? Regards John Sampson ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32