Re: [python-win32] Does Python need a native Windows GUI toolkit?

2008-11-28 Thread Simon Dahlbacka
On Fri, Nov 28, 2008 at 10:46 PM, Thomas Heller <[EMAIL PROTECTED]> wrote: > Does Python need a native, pure Python, Windows GUI toolkit, one that uses > win32 api calls directly to use native windows controls? How does it differ from http://venster.sourceforge.net/ ? _

Re: [python-win32] Docs & bonus: pywin32 docs

2008-05-27 Thread Simon Dahlbacka
Very nice, however you might want to fix the code samples to be properly indented instead of collapsed whitespace.. regards, Simon On Tue, May 27, 2008 at 6:47 PM, Tim Golden <[EMAIL PROTECTED]> wrote: > Thanks to everyone who's replied and commented onlist and in private mail. > Hopefully withi

Re: [python-win32] error

2008-02-21 Thread Simon Dahlbacka
Let's start with the obvious, you *do* have the MSMQ stuff installed? /Simon 2008/2/21, Sagar Khushalani <[EMAIL PROTECTED]>: > > that was the error for the example from the website. > here it the error for my program. > > Traceback (most recent call last): > File "C:\Homework\Python\main.py",

Re: [python-win32] Check if user has windows administrator

2008-01-15 Thread Simon Dahlbacka
> > > Oh - and also how to either (a) force bdist_wininst executables to request > elevation or (b) have the .msi generation be smarter wrt upgrading so > installation is reasonable on Vista. Does anyone here have bdist_msi > experience? > For a), it should work by adding a manifest like this

Re: [python-win32] Check if user has windows administrator privilege

2008-01-14 Thread Simon Dahlbacka
> > import ctypes > print ctypes.windll.shell32.IsUserAnAdmin() > > (Courtesy of Thomas Heller - from a posting back in 2006) > > I have no idea if it will work on Vista. You will need to try it. > It kinda works on Vista. If you're running from an elevated console then it will return 1, othervise

Re: [python-win32] mysqldb python

2007-10-25 Thread Simon Dahlbacka
Yes it should work from a script just as well from the shell, but with this info we cannot say whats wrong .. If you follow the suggestion: what does the server error log say? One possible cause for such an error is that you haven't sent the http headers correctly On 10/25/07, kNish <[EMAIL PR

Re: [python-win32] Mysqldb

2007-10-24 Thread Simon Dahlbacka
What I was trying to say has actually nothing to do with python nor sql but networking in general. The host name 'localhost' (and IP address 127.0.0.1 for that matter) always refers to the current machine, and if the server is running on computer a and the client on computer b the client will alwa

Re: [python-win32] Mysqldb

2007-10-24 Thread Simon Dahlbacka
the obvious? answer here is at least not with 'localhost' as hostname On 10/24/07, kNish <[EMAIL PROTECTED]> wrote: > > Hi, > > Command in use : > > conn = MySQLdb.connect(host = "localhost",port = 3306, user = > "root",passwd = "",db = "dailies",cursorclass=MySQLdb.cursors.DictCursor) > >

Re: [python-win32] issues with win32com constants and static/dynamic dispatch

2007-07-04 Thread Simon Dahlbacka
my best guess is that you should be using .ProductName (capital p) as static dispatch is case sensitive.. /S On 7/4/07, Jason Ferrara <[EMAIL PROTECTED]> wrote: I'm trying to use a COM library from python. If I use dynamic dispatch, the com objects all behave correctly, but the constants defi

Re: [python-win32] Help needed : FindWindowEx

2007-05-02 Thread Simon Dahlbacka
essage on the propt or logs it to a file do suggest your ideas on this -- *From:* Simon Dahlbacka [mailto:[EMAIL PROTECTED] *Sent:* Thursday, May 03, 2007 10:55 AM *To:* Amit Arora *Cc:* Roger Upole; python-win32@python.org *Subject:* Re: [python-win32] Help

Re: [python-win32] Help needed : FindWindowEx

2007-05-02 Thread Simon Dahlbacka
Random thought.. there *has* to be a better way of finding out when a usb device is plugged in... (not that I know how, but I haven't needed to find out either..) On 5/3/07, Amit Arora <[EMAIL PROTECTED]> wrote: This helps a lot, there was actually a confusion in window names as you mention

Re: [python-win32] How to make a window client area "transparent"

2007-04-08 Thread Simon Dahlbacka
Are you simulating Vista behavior on non-vista system, or do you want a glass-enabled application on vista? If the latter, then I suspect there are better api:s to start from, unfortunately I'm not familiar with them and cannot give any further pointers.. regards, Simon On 4/7/07, Paul Moore <[

Re: [python-win32] Python for System Administration

2006-12-12 Thread Simon Dahlbacka
> Unsurprisingly perhaps, a lot of my recommendations > involve WMI. Now I've no idea if WMI is still a concept > under .NET or how it's invoked if it is. At present, > you use the pywin32 GetObject method to invoke it. > Is that still possible under IronPython? Or is there > some -- possibly bu

Re: [python-win32] AVDoc and PDDoc/How to force late binding

2006-09-25 Thread Simon Dahlbacka
EnsureModule forces *early* binding  On 9/25/06, Michael S <[EMAIL PROTECTED]> wrote: I am trying to force late binding, since obviously early binding does not discover the methods that I am trying to call. I ran the makepy -i from within PythonWin, to get those two lines I need to paste in into my

Re: [python-win32] ImportError: No module named system

2006-05-06 Thread Simon Dahlbacka
what's system, or did you intend to import sys ?On 5/6/06, reidar <[EMAIL PROTECTED]> wrote: HiSorry if this is me being ignorant.Error:PythonWin 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]on win32.Portions Copyright 1994-2004 Mark Hammond ([EMAIL PROTECTED]) -see 'Help/About Py

Re: [python-win32] Getting the text of the first slide of a PowerPointfile

2006-04-28 Thread Simon Dahlbacka
here's the file I've used for creating PowerPoints, you should be able to use it "backwards"hope it provides some pointers../SOn 4/28/06, Simon Dahlbacka <[EMAIL PROTECTED]> wrote: I've done it the other way around, i.e. created powerpoint files using python, and co

Re: [python-win32] Getting the text of the first slide of a PowerPointfile

2006-04-28 Thread Simon Dahlbacka
I've done it the other way around, i.e. created powerpoint files using python, and could probably provide an example, I'll post later tonight if I just remember to do it../Simon On 4/28/06, Tim Golden <[EMAIL PROTECTED]> wrote: [Daniel Greenfeld]| On to part 2 of my project.  I need to be able to g

Re: [python-win32] Fetching network interface instance names

2005-07-25 Thread Simon Dahlbacka
WorksForMe both 2.3.2 and 2.4.1 (ActiveState versions) (actually I only tried the .Caption, but since you said that that also failed..) On 7/25/05, Schollnick, Benjamin <[EMAIL PROTECTED]> wrote: > > http://www.microsoft.com/technet/scriptcenter/scripts/python/p > > yindex.mspx > > has some scr

Re: [python-win32] detect mapped network path

2005-07-03 Thread Simon Dahlbacka
On 7/1/05, Paul Moore <[EMAIL PROTECTED]> wrote: > On 7/1/05, Simon Dahlbacka <[EMAIL PROTECTED]> wrote: > > On 7/1/05, Mark Hammond <[EMAIL PROTECTED]> wrote: > > > > ..but how do i find out if let's say X:\foo\bar\blarg.baz is a local &

Re: [python-win32] detect mapped network path

2005-06-30 Thread Simon Dahlbacka
On 7/1/05, Mark Hammond <[EMAIL PROTECTED]> wrote: > > ..but how do i find out if let's say X:\foo\bar\blarg.baz is a local > > path or in fact a mapped network path? > > win32api.GetLogicalDriveStrings() may also help. I was going to say that it does not help, but then I found win32file.GetDrive

Re: [python-win32] detect mapped network path

2005-06-30 Thread Simon Dahlbacka
On 6/30/05, Tim Golden <[EMAIL PROTECTED]> wrote: > [Simon Dahlbacka] > | I'm having trouble with the fact that > | win32file.FindFirstChangeNotification seems to not like network paths. > | (Or at least that is what I concluded after getting the following > | tracebac

[python-win32] detect mapped network path

2005-06-30 Thread Simon Dahlbacka
Hi, I'm having trouble with the fact that win32file.FindFirstChangeNotification seems to not like network paths. (Or at least that is what I concluded after getting the following traceback) Traceback (most recent call last): File "C:\Python23\lib\threading.py", line 436, in __bootstrap self

Re: [python-win32] character to integer

2005-04-04 Thread Simon Dahlbacka
help(ord) On Apr 4, 2005 4:16 PM, Chi Tai <[EMAIL PROTECTED]> wrote: > Hello, > > how can i make an integer value from a character value like this. > > string = "Hallo" > integerval = string[0] > i = integerval + 2 #this does not work because integerval is not an > integer value > > i want the