want to put new functions (short python code) on keys like F1,
F12, Ctrl-F1 and other keys.
Is there a mechanism/recipe ?
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
Mark Hammond wrote:
Robert wrote:
want to put new functions (short python code) on keys like F1, F12,
Ctrl-F1 and other keys.
Is there a mechanism/recipe ?
Look for the *.cfg files in the pythonwin directory.
Thanks.
maybe some of the following stuff is useful for somebody, or for
Khalid Moulfi wrote:
Hi all,
I have thousands of file and I must update only the first line.
My concern is : is it possible to read only the first line for each of
these files and update the first line only without reading the file
completely ?
Version of Python is 2.2.1
Thanks for any he
Tim Golden wrote:
Robert wrote:
SetSystemTime on Vista admin account throws:
(1314, 'SetSystemTime', 'A required privilege is not held by
the client.')
Not known from previous Windows versions.
With what switch or whatever can this be enabled?
According to the docs:
(wa
>>> os.path.getmtime('x.txt')
1193160881
>>> int(win32file.GetFileAttributesExW('x.txt')[-2])
1193153681
>>> int(win32file.GetFileAttributesExW('x.txt')[-2]) -
os.path.getmtime('x.txt')
-7200
(Win XP)
is this a bug, or is there a issue with timezones/summer time?
aren't time.time() values abso
Tim Roberts wrote:
Robert wrote:
os.path.getmtime('x.txt')
1193160881
int(win32file.GetFileAttributesExW('x.txt')[-2])
1193153681
int(win32file.GetFileAttributesExW('x.txt')[-2]) -
os.path.getmtime('x.txt')
-7200
(Win XP)
is this a bug, or is
ng=equallogic....@python.org] On
Behalf Of Robert
Sent: Thursday, July 02, 2009 5:07 PM
To: python-win32@python.org
Subject: [python-win32] File Time: win32file vs Python ?
>>> os.path.getmtime('x.txt')
1193160881
>>> int(win32file.GetFileAttributesExW('x.txt
Dave Angel wrote:
Tim Roberts wrote:
Robert wrote:
os.path.getmtime('x.txt')
1193160881
int(win32file.GetFileAttributesExW('x.txt')[-2])
1193153681
int(win32file.GetFileAttributesExW('x.txt')[-2]) -
os.path.getmti
. How to cancel the navigation?
Robert
-
This member function is called by the framework to cause an event
to fire before a navigation occurs in the web browser.
virtual void OnBeforeNavigate2(
LPCTSTR lpszURL,
DWORD nFlags,
LPCTSTR lpszTargetFrameName,
CByteArray
oh, found I have to return a 7-tuple with Cancel as last one
return None, None, None, None, None, None, args.Cancel
Robert wrote:
class MyWebBrowser(activex.Control, WebBrowserModule.WebBrowser):
def OnBeforeNavigate2(self, pDisp, URL, Flags, TargetFrameName,
PostData, Headers, Cancel
++ only interface.
There is a "VSS.VSSCoordinator" in the COM browser. does it have
to do anything with that...
Robert
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
Kevin Horn wrote:
On Mon, Mar 15, 2010 at 1:01 PM, Robert mailto:kxrobe...@googlemail.com>> wrote:
is there a way to use the VSS (as requester) from Python rather
simple way - with COM functions or so (win32com or cytpes)? or only
through a compiled SWIG extension
at is the underlying cause for the crash?
Best,
Robert
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
e. Yet there was no update for long
time. I wonder that there are not many pywin32 bug reports in that direction.
I only found :
bug #2846720 (similar to C) )
and #2908939 perhaps. (->comments by M. Hammond, but no solution found)
#3013558
Any ideas?
Robert
import wx
_
pure Python is much better for this),
just to exploit the Window features ... before in infinite time I rewrite the behavior of the MFC-goodies in pure win32gui ;-) )
Robert
PS: PyGUI notes
PyGUI is/seems a nice plan. rather direct on platform libs ( theorically -
still damn MFC on Win ;-) ).
Roger Upole wrote:
"Robert" wrote in message
news:i9kmoi$cl...@dough.gmane.org...
B) a oneliner with just "import wx" crashes hard with F5 in Pythonwin IDE
build 214/py2.6 - but not in build 212 (ntdll.dll)
AppName: pythonwin.exe AppVer: 2.6.214.0 ModName: ntdll.dll
M
g through Pythinwin.exe (IDE), but
only when starting with python(w).exe + win32ui
(Even when the Pythonwin IDE is raise sucessfully through a script
on python(w).exe, the problem is there)
Is there a special manifest in Pythonwin.exe ?
Robert
___
py
Robert wrote:
Mark Hammond wrote:
It will be something to do with the manifest and the mfc
libraries. I think that even though the mfc dlls are installed
with pywin32, it might not work as hoped :) Can you find a
redistributable version of the MFC dlls you can try? I can't
explain why t
Robert wrote:
Robert wrote:
Mark Hammond wrote:
It will be something to do with the manifest and the mfc
libraries. I think that even though the mfc dlls are installed
with pywin32, it might not work as hoped :) Can you find a
redistributable version of the MFC dlls you can try? I can
to with right
version ... ?
What has to be done to distribute the right binary files for a
win32ui app?
Where do the "active" rather new files in
C:\WINDOWS\WinSxS\x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_028bc
148 come from at all?
Robert
PS: By experien
Mark Hammond wrote:
I'm afraid some of the assembly stuff is truly black-magic to me,
but I'll answer what I can.
On 8/11/2011 1:28 AM, Robert wrote:
...
Now when I move away the 5 MFC files (4 dlls + manifest) to _mv,
then
Pythonwin.exe still runs properly!
And it does so until
see..
Check also what is actually called in
HKEY_CLASSES_ROOT\CLSID\\LocalServer32
Robert
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
on messages
(BN_.. (Which could be routed via HookNotify?)) or so do trigger
the normal HookCommand'ed handler.
When that Common-Controls section (or the whole .manifest) is
removed, the apps work normal in build 216.
What could be the reason?
What does this Common-Control section actuall
if the original pythonwin\pywin\Demos\ocx\webbrowser.py
(using a MDIClient) is run standalone through python(w).exe, there
is also a ugly SIGSEGV or even worse C-level crash - now at start.
It should only raise a Python exception due to the non-working MDI
setup I guess.
Robert
=== S
-stuff/source/browse/trunk/winsxs
is it necessary to have extra python files for each instance? or
could one existing python installation run in multiple instances
too this way ?
Robert
Information I found useful about WinSxS and assemblies:
http://msdn.microsoft.com/en-us/library
What is the best way to get the URL of current open webbrowser
Window (topmost) into a utility script? At least for IE & Mozilla's
Robert
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
SetSystemTime on Vista admin account throws:
(1314, 'SetSystemTime', 'A required privilege is not held by
the client.')
Not known from previous Windows versions.
With what switch or whatever can this be enabled?
Robert
___
pytho
From: "Richard Zinn"
Hi, I've implemented the MyService.py example from the py2exe samples
directory using Python2.6, on my Windows XP SP2, and I get the error
1052...did not respond in a timely fashion immediately when I run the
MyService.py, or the MyService.exe, or if I install it as a servic
I'm new to using the win32 module and I've written a little service in
python for myself. It runs fine and without errors when I use debug:
>python myService.py debug
Debugging service myService - press Ctrl+C to stop.
This works and prints to a log file I set up just fine, so I know it's
working
This can be accomplished with the wxPython lib.
On Oct 22, 2009, at 7:21 PM, Tim Roberts wrote:
Randy Syring wrote:
Is it possible, with a python program, to run through the task bar
icons and change them so that their current single-click event would
get transferred to a double-click event?
I apologize. I think I misread what you are trying to accomplish. It
sounds like you want to do this for icons that you did not create. I
do not think this is possible with wxPython.
On Oct 23, 2009, at 11:05 AM, Robert Liebeskind wrote:
This can be accomplished with the wxPython lib
I apologize. I think I misread what you are trying to accomplish. It
sounds like you want to do this for icons that you did not create. I
do not think this is possible with wxPython.
On Oct 23, 2009, at 11:05 AM, Robert Liebeskind wrote:
This can be accomplished with the wxPython lib
I apologize. I think I misread what you are trying to accomplish. It
sounds like you want to do this for icons that you did not create. I
do not think this is possible with wxPython.
On Oct 22, 2009, at 7:21 PM, Tim Roberts wrote:
Randy Syring wrote:
Is it possible, with a python progra
Hi,
I'm hoping that someone can help with this... I've seen some old posts which
I think may refer to this same issue but I'm having difficulty understanding
how to come up with a solution, and particularly where any
"PumpWaitingMessages" should be located and/or/how/whether
pythoncom.CoInitializ
I have been successful in the past using COM from Python to control
ActiveX elements such as LabView programs and a few third-party device
servers. I recently tried to integrate a new component which came with
a LabView example and some Visual Basic sample code. The LabView example
works for
.com>
Content-Type: text/plain; charset="ISO-8859-1"
Robert Norman wrote:
I have been successful in the past using COM from Python to control
ActiveX elements such as LabView programs and a few third-party device
servers. I recently tried to integrate a new component which came with
Mark Hammond gmail.com> writes:
>
> On 13/07/2012 10:45 AM, Jane Chen wrote:
> > Hi all,
> >
> > I would like to add python win32 to Portable Python distribution with
> > PyGTK for Windows
> > http://fnch.users.sourceforge.net/portablepygtkwindows.html
> > I installed the pywin32 in the python\L
(if I'm
reading MSDN correctly) is therefore the function "where the fault
occurred".
So the question is, what's the next step in tracking down the bug?
PyComplex_AsCComplex is a pretty simple function. Or am I way off-base
and should be looking elsewhere?
Robert Bre
peculation on speculation.
> Personally I would get a debug build running, so a decent
> stack-trace is available, but I understand that may not be an option.
...for which I'd need vc++, right? IIRC, I'd need at least version 7?
Would "Visual Studio .NET Professional Edition
22\Lib\site-packages\win32com\client\__init__.py", line
503, in
__setattr__
d.__setattr__(attr, value)
File "D:\PYTHON22\Lib\site-packages\win32com\client\__init__.py", line
463, in
__setattr__
self._oleobj_.Invoke(*(args + (value,) + defArgs))
TypeError: Objects of type
463, in __setattr__
self._oleobj_.Invoke(*(args + (value,) + defArgs))
TypeError: Objects of type 'instance method' can not be converted to a
COM VARIANT
Tim Golden wrote:
[Robert Kaplan]
| I'm new to the mailing, so greetings all!
Welcome. As a word of warning, this is a rela
Title: Message
Hello
List,
Can
anyone please point in the correct direction to resolve this minor printing
annoyance.
When
printing a copy of my code, why is the header using strange characters and not
readable text as expected ?
Thanks
in advance!
Robert
running the following, Python 2.3.3, wxPython 2.4.2.4, PythonWin 2.3.3
win32all build 163
Thanks,
Robert
-Original Message-From: Mark Hammond
[mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 3:47
PMTo: 'Robert Adams'; 'python-win32'Subject: RE:
[python
ISAPI + WSGI:
http://isapi-wsgi.python-hosting.com/
or ASP:
http://www.4guysfromrolla.com/webtech/082201-1.shtml
or (my preferred method) ASP + WSGI:
http://www.amorhq.net/blogs/index.php/fumanchu/2005/05/26/wsgi_gateway_f
or_asp_microsoft_iis
If you used the latter, you could use CherryPy and be
had some issues in the past with "import myfile", and I find
"from mypackage import mfile" to be more reliable. Sorry; I don't have
any hard data on that at the moment--lost in the mists of history. But
everything I import in .asp files sits in my site-packages folder
any
Title: Message
Hi,
Do I have a setup
issue or is the PythonWin editor Replace function limited to 30 characters
?
Thanks in
advance,
Robert
___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python
2.3.3
win32all build 163, and FYI, I am forced to run this version in support of
CAD system.
Regards,
Robert
-Original Message-
From: John Machin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 08, 2005 2:45 PM
To: Graeme Glass; Robert Adams
Cc: python-win32
Subject: Re: [python-win32] Edi
I have a module where I use COM to communicate with some HW drivers. In my
module I use CoInitializeEx to init COM in multithreaded mode. However, when I
use PythonWin to debug/test my module, I get an error due to the fact that
PythonWin has (implicitly) initialized COM in apartment threaded mo
Neil Hodgson wrote:
> Robert:
>
> > After "is_platform_unicode = ", scintilla displays some unicode
> > as you showed. but the win32-functions (e.g. MessageBox) still do not
> > pass through wide unicode.
>
> Win32 issues are better discussed on the pyth
ly be available after the
w=win32com.client.Dispatch("Word.Application") statement."
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
eed to set Cursorlocation before calling Recordcount. Google
for more info.
adUseClient = 3
rs.Cursorlocation = adUseClient
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
insert hooks to return an
error code more-meaningful than "1" in the future.
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
-
Traceback (most recent call last):
File "C:\Python24\Lib\site-packages\win32\test\test_win32pipe.py",
line 37, in testCallNamedPipe
win32file.WriteFile(pipeHandle, "bar\0foo")
error: (109, 'WriteFile', 'The pipe has been ended.')
--
n32serviceutil.ServiceFramework" to get some sample code. Cut-n-paste should get you there.
On the "separate console" front, I've given up on local, desktop-based solutions and now use a web-based terminal I wrote for use with CherryPy: http://projects.amor.org/misc/wiki/HTTPREPL
MS Access Dates are best input using the #date# syntax. Here's an
example to convert a datetime.datetime object to that format:
return ('#%s/%s/%s %02d:%02d:%02d#' %
(value.month, value.day, value.year,
value.hour, value.minute, value.second))
Should be easy e
All,
I am having trouble finding a module made to user MySQL on Pytho 2.5 on
Windows. Could anyone point me to the right direction? The Windows
MySQLdb will only install on my 2.4.3 version.
Robert
___
Python-win32 mailing list
Python-win32
(
servicemanager.EVENTLOG_INFORMATION_TYPE,
servicemanager.PYS_SERVICE_STOPPED,
(self._svc_name_, '')
)
def SvcStop(self):
self.ReportServiceStatus(win32service.SERVICE_STOP_PENDING)
win32event.SetEvent(self.stop_event)
if
s a
column reference.
The same SQL run as a Query inside the Access GUI works as expected.
Manually changing one of the ints to a Single by appending ".0" works as
expected.
Any ideas about where I need to look next to find the cause of, and then
fix, this behavior?
Robert Brewer
S
Mark Hammond wrote:
> Robert Brewer wrote:
> > The small demo script below makes ADO calls to a Microsoft
> > Access (Jet)
> > database via win32com. But it fails in a potentially dangerous way;
> > "SELECT int * int;" can return None with no warning if the
sn't have nearly that level of testing (even though I wrote
asp_gateway). I don't recommend it unless you have the time to debug the
interaction between various versions of IIS, ASP, pywin32, and Python.
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
_
I spent far too many hours
trying to extract them back from float(d) [1]. Yet another lesson in the
dangers of multiple documentation locations. Ah well, at least I learned
something about Jet and SQL server internals.
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
[1] http://pro
Uninitialize()
If for various reasons that can't be made to work (some components just
aren't thread safe), another option would be to run all the COM calls in
a single thread and use a Queue; request threads would call q.put(xml,
reqid) and block, the COM thread would call q.get(), do the work, and
shove the result into results[reqid].
Robert Brewer
[EMAIL PROTECTED]
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
inally approach works. Ask
again if you need to.
> I guess you thinking of some
> standard python modules (as there's probably a python module for
> everything =))?
:) Yup, there is a Queue module:
http://docs.python.org/lib/module-Queue.html.
Robert Brewer
[EMAIL PROTECTED]
n
conn = odbc.odbc(conn_str)
dbi.operation-error: [Microsoft][ODBC Microsoft Access
Driver]Allgemeiner Fehler Registrierungsschlüssel 'Temporary
(volatile) Jet DSN for process 0xfd0 Thread 0xfa4 DBC 0x349644 Jet'
kann nicht geöffnet werden. in LOGIN
---
Thanks,
robe
Hello all,
I am having a look through the C++ source code (in
particular win32/src/PythonService.cpp), trying to deduce a way to have the
Python service set the exit code on stop.
It appears that on a successful stop, both exit codes (svc and win32) are
set to 0, overriding any previously set val
65 matches
Mail list logo