[python-win32] Failed to load Win32uiApplicationInit

2025-04-05 Thread Andrea Gavana via python-win32
Dear PyWin32 users, We have been developing and distributing on Windows a large application over the years. The application is of course in Python, and it gets Cythonized and bundled up with py2exe for distribution. Up until today everything was working fine. We have made no change to any of the

[python-win32] Excel worksheet range, Text property

2011-08-09 Thread Andrea Gavana
Hi All, I am trying to speed up a bit a new widget I created for wxPython, which uses heavily the COM interface between Python and Excel (it only reads Excel data, no writing). One of the main issues I have found is related to the extraction of the "Text" property from a range of cells. Let's

[python-win32] Excel "NumberFormat" to Python? (!)

2011-08-05 Thread Andrea Gavana
Hi All, I was wondering if someone had already tackled the problem of converting Excel cell NumberFormat to something Python can parse and actually use. In more detail, what I mean is: once you right-click on a cell and select "Format Cells" you get a huge list of possible formatting options,

[python-win32] Makepy static and dynamic Dispatch COM headache

2010-05-22 Thread Andrea Gavana
Hi All, I have been spending the most part of the day to try to use makepy or Dispatch on a proprietary dll library (PISDK for those who know it). I did the following 2 things (not at the same time): 1) makepy.py -o PISDK.py C:/Program Files/PIPC/PISDK/pisdk.dll And I got a nice and big PISDK.py

[python-win32] Formatting parts of an excel cell

2009-04-25 Thread Andrea Gavana
-- Forwarded message -- From: Andrea Gavana Date: Sat, Apr 25, 2009 at 2:28 PM Subject: Re: [python-win32] Formatting parts of an excel cell To: Mark Tolonen Hi, On Sat, Apr 25, 2009 at 2:00 PM, Mark Tolonen wrote: > > "Baehr, Manuel" wrote i

Re: [python-win32] Invalid or corrupted installer...

2008-09-23 Thread Andrea Gavana
Hi Tim, On Tue, Sep 23, 2008 at 3:56 PM, Tim Golden wrote: > Also, I take it that if you can't use Firefox, you can't use wget either? No, our firewall blocks *everything* that is not internet explorer (!) > http://users.ugent.be/~bpuype/wget/ > > or Python urrllib? The same as above, unfortuna

Re: [python-win32] Invalid or corrupted installer...

2008-09-23 Thread Andrea Gavana
Hi Tim, On Tue, Sep 23, 2008 at 12:12 PM, Tim Golden wrote: > Andrea Gavana wrote: >> >> Hi All, >> >>I am having few problems in downloading and installing the release >> 212 of PyWin32 (and all the other releases as well) from SourceForge. >> Whatever

[python-win32] Invalid or corrupted installer...

2008-09-23 Thread Andrea Gavana
Hi All, I am having few problems in downloading and installing the release 212 of PyWin32 (and all the other releases as well) from SourceForge. Whatever executable file I try to download from SourceForge (I need the pywin32-212.win32-py2.5.exe for my Python version), the download remains stuc

Re: [python-win32] Overlay Icon Question and network drives

2008-04-17 Thread Andrea Gavana
Hi Tim, On Thu, Apr 17, 2008 at 11:57 AM, Tim Golden wrote: > Andrea Gavana wrote: > > Just an update: I have managed to make it running both as a Python > > script and as a standalone executable/dll. It's working fine and it's > > not slowing down our network c

Re: [python-win32] Overlay Icon Question and network drives

2008-04-17 Thread Andrea Gavana
Hi All, On Wed, Apr 16, 2008 at 10:21 PM, Jürgen Kareta wrote: > Tim Golden schrieb: > > > [EMAIL PROTECTED] wrote: > > > >> Hi Andrea, > >> > >> the code in my first link was from the mercurial extension TortoiseHG. They > >> found some issues that the icon overlay slows down network devices. See

Re: [python-win32] Overlay Icon Question and network drives

2008-04-16 Thread Andrea Gavana
Hi Jurgen & All, On Wed, Apr 16, 2008 at 12:07 PM, <[EMAIL PROTECTED]> wrote: > the code in my first link was from the mercurial extension TortoiseHG. They > found some issues that the icon overlay slows down network devices. See here: > > https://sourceforge.net/tracker/index.php?func=detail&aid

Re: [python-win32] Overlay Icon Question...

2008-04-16 Thread Andrea Gavana
Hi Tim & All, On Tue, Apr 15, 2008 at 6:44 PM, Tim Golden wrote: > Andrea Gavana wrote: > > Thank you a lot, now everything is perfectly clear. I made this class > > communicate with the registry where I store a file name (in which I > > have all my files for which I wa

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Andrea Gavana
Hi Tim & All, On Tue, Apr 15, 2008 at 3:20 PM, Tim Golden wrote: > > Andrea Gavana wrote: > > Yes, thank you, it helps a lot... although I still have some doubts. > > These are my modifications of the class Roger posted: > > > > class SIOI(object): > >

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Andrea Gavana
Hi All, On Tue, Apr 15, 2008 at 2:44 PM, Andrea Gavana wrote: > Hi Tim, Roger & All, > > > On Tue, Apr 15, 2008 at 10:03 AM, Tim Golden wrote: > > Andrea Gavana wrote: > > > Hi Roger, > > > > > > On Tue, Apr 15, 2008 at 12:21 AM, Roger Upole wr

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Andrea Gavana
Hi Tim, Roger & All, On Tue, Apr 15, 2008 at 10:03 AM, Tim Golden wrote: > Andrea Gavana wrote: > > Hi Roger, > > > > On Tue, Apr 15, 2008 at 12:21 AM, Roger Upole wrote: > >> I've been meaning to look at how this works for some time, > >> so I to

Re: [python-win32] Overlay Icon Question...

2008-04-15 Thread Andrea Gavana
Hi Roger, On Tue, Apr 15, 2008 at 12:21 AM, Roger Upole wrote: > I've been meaning to look at how this works for some time, > so I took a few minutes to cook up an example (attached). Thank you very much for the sample! It is really enlighting. I have however some difficulty to understand it (sor

Re: [python-win32] Overlay Icon Question...

2008-04-14 Thread Andrea Gavana
Hi Tim, On Mon, Apr 14, 2008 at 5:07 PM, Tim Golden wrote: > Andrea Gavana wrote: > > 1) I have looked the implementation mentioned in the link above, but > > it is a bit unclear to me: how do I actually *use* this class? All my > > users have the extension "*.DATA&qu

[python-win32] Overlay Icon Question...

2008-04-14 Thread Andrea Gavana
Hi All, I have a GUI app, written in wxPython, which allows the user to load one or more files (always with the extension *.DATA) and to save some data in a database. Now, I would like to assign an overlay to the icon of the files added to the database, leaving the other files (with the same f

[python-win32] SetClassLong on wx.PopupWindow breaks PyOpenGL and VTK

2007-12-10 Thread Andrea Gavana
Hi All, Sorry for the half off-topic question, but I am not sure if a solution to this problem can be found in wxPython or in pywin32 (or in ctypes). Using the class declared below, I am able to create a popup window with some shadow on it (I use it for FlatMenu). When I construct a popup wind

[python-win32] Drag and Drop from Outlook

2007-03-13 Thread Andrea Gavana
Hi All, I am trying to make my application accepting drag and drop emails from Outlook. I was told on the wxPython mailing list to try to use win32com, but actually I have no idea which clipboard data format an Outlook email has. I have tried to set up a custom drop target for that: class MyD

Re: [python-win32] Excel COM problem

2007-02-12 Thread Andrea Gavana
Hi Roger, On 2/10/07, Roger Upole wrote: > "Andrea Gavana" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi All, > > > >I have a very simple python script that tries to put a rectangular > > shape in a worksheet and then add some t

[python-win32] Excel COM problem

2007-02-08 Thread Andrea Gavana
Hi All, I have a very simple python script that tries to put a rectangular shape in a worksheet and then add some text inside that shape. The main problem, is that as usual Excel doesn't like input strings longer than 200 and something characters. So, By just recording a macro in Excel, I trie

[python-win32] PythonWin And Excel Problem

2006-12-01 Thread Andrea Gavana
Hi All, I am having some problems in running a very simple python script, which prints some numbers in an Excel spreadsheet. The numbers are stored in a list. I know that the numbers are different (random generated), but when I open the Excel file I get a column of data with all the numbers eq

[python-win32] Pythoncom error with Excel

2006-11-27 Thread Andrea Gavana
Hi all, I have built a script that communicates with Excel and plots some data using win32com. Everything goes fine as long as the data series do not contain many points. If I have more that few points (let's say 50 points to plot), I get this error: (-2147352567, 'Exception occurred.', (0, '

Re: [python-win32] [Py2exe-users] py2exe and winxptheme

2006-11-14 Thread Andrea Gavana
Hi Thomas, > Seems I have to disappoint you - I have no idea anymore. But then, > I've never used these theme functions. > > Sorry, > Thomas Thank you for your help... I guess it is a bit an obscure problem. I don't really want to abandon that really nice interface, so I hope that some PyWin32 g

Re: [python-win32] [Py2exe-users] py2exe and winxptheme

2006-11-14 Thread Andrea Gavana
Sorry, I just would like to add that I also have a file called: MyExecutable.exe.manifest in the dist directory. Andrea. On 11/14/06, Andrea Gavana <[EMAIL PROTECTED]> wrote: > Hi Thomas, > > > > > Let me try to guess: Do you have an XP-style manifest for the exe

Re: [python-win32] [Py2exe-users] py2exe and winxptheme

2006-11-14 Thread Andrea Gavana
Hi Thomas, Let me try to guess: Do you have an XP-style manifest for the exe? Yes, I have it, embedded in the setup.py script. I have removed it from the file I sent to the mailing list because I thought it was redundant, but if you need to see it I can attach it to my e-mail. Is it a probl

[python-win32] py2exe and winxptheme

2006-11-14 Thread Andrea Gavana
Hi all, I am having some troubles mixing py2exe and winxptheme. Basically, I am using wxPython 2.7.2.0 with Python 2.5, and painting some window background using the UxTheme via winxptheme. This is what I am doing: hwnd = MyWindow.GetHandle() self.hTheme = winxptheme.OpenThemeData(hwnd, "Wind

[python-win32] Retrieve Icons Associated To An Extension?

2005-03-29 Thread andrea . gavana
Hello NG, I have searched everyweher, and I am not able to find a solution... basically, I am constructing a GUI with wxPython, in which I have a list. In this list control, I have some file. I would like to associate (to every file) its icon (on Windows). I have searched about the use of Ma