Re: What do I need to know in order to write a web application in python?
On 3/4/2011 16:48, ErichCart ErichCart wrote: In fact this doesn't necessary need to be web application. For example I have a friend who uses Delphi, and he can create all sorts of windows applications easily, like he can see the window on the screen and he can place buttons, text fields, radio buttons etc. wherever he wants and then program the actions of each element. I was able to do the same with visual basic in one of my university classes. What do I need to know in order to be able to do the same with python? Which python modules/python development environments do I need to use? You might want to look at: http://visualpython.org/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Considering python - have a few questions.
I would want the program to run in Windows for sure. If it could work on a Mac and other systems, that would be a plus. btw - I have the database designed (and the program info database filled) in Access If running on a Mac really is a goal, ditch Access, its windows only. You'd want to look into MySQL, PostgreSQl or some such for inter-platform use. -- http://mail.python.org/mailman/listinfo/python-list
Re: os.walk(entire filesystem)
Tobiah wrote: When I do os.walk('/') on a Linux computer, the entire file system is walked. On windows, however, I can only walk one drive at a time (C:\, D:\, etc.). If this is a personal utility for one computer, and if you run XP on that computer, then you have the ability to mount secondary drives on to the file system of your main drive. This would give you the effect that you are enjoying on the Linux side. I am guessing that the utility that does this is the same one that allows you to partition drives, but I'm not sure. Ditto for win2k. right click 'My computer'->'Manage'->'Disk Management' The only restriction is that both the root filesystem, and the one you want to mount within it have to be NTFS. (I may be wrong, but that appears to be true on my system.) Still a moot point if this is to be widely deployed to existing PCs though. -- http://mail.python.org/mailman/listinfo/python-list
Re: Compiling Python 2.4 extensions with free VC++ Toolkit
Jody Burns > wrote: Hi all, I've been wondering if there's anything on the drawing board about patching distutils/msvccompiler.py so that it can compile Python extensions using the free Visual C++ toolkit instead of the entire Visual C++ development environment. I know it's possible, because I was able to compile and install PyCrypto 2.0 for Python 2.4 today. I did this by commenting out the part of msvccompiler that checks for VS library paths and manually adding them to my LIB environment variable. Been messing around with that myself earlier today. I just added the registry keys that msvccompiler.py was looking for. And pointed them to the toolkit and sdk paths. Worked just fine. It worked to build PIL 1.1.4 for python 2.4 today, although without freetype2 support. Probably just needs some minor tweaking to get it in there as well. I'll have to grab the source of some other extensions, and see how they turn out as well. -- http://mail.python.org/mailman/listinfo/python-list
Re: building python extensions with .net sdk compiler?
I got this insane message, how did you solve this "problem" ? running install running build running build_py running build_ext error: The .NET Framework SDK needs to be installed before building extensions for Python. - Or does anyone know why i get this message, the .net sdk is about 100Mb, no fun ! The message says what it says. You have to install the .net SDK to use this. You'll also need the Platform SDK if you don't have it already installed. (And its a *lot* bigger than the .net sdk) And then you'll find out that you either need to hack distutils/msvccompiler.py, or your registry. -- http://mail.python.org/mailman/listinfo/python-list
Re: building python extensions with .net sdk compiler?
David Fraser wrote: So using MinGW seems like the better option ... is it working for Python 2.4? Yes it does. :) I haven't tried it, but probably. The problem with the toolkit is that mscvccompiler.py in distutils is expecting VisualStudio to be installed, not the toolkit. So when it goes to lookup paths to the installed tools, it doesn't find them. All that's actually needed to make it work (After installing all 4 required packages) is to add several strings to your registry. You'll probably have to add all the keys below \Software\Microsoft as well. Under : HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\7.1\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories You need to add the strings: "Include Dirs"(path to toolkit \include; path to platform sdk \include) "Library Dirs"(path to toolkit \lib; path to platform sdk \lib) "Path Dirs" (path to toolkit \bin; path to platform sdk \bin) And it'll be happy. Of course it'd be nice if msvccompiler.py just fell back to looking for the toolkit/sdk default dirs (or looked them up via environment vars, since the toolkit does include a vcvars32.bat that sets appropriate ones) if the VS lookup failed. -- http://mail.python.org/mailman/listinfo/python-list
Re: building python extensions with .net sdk compiler?
Mike C. Fletcher wrote: Grumman wrote: Of course it'd be nice if msvccompiler.py just fell back to looking for the toolkit/sdk default dirs (or looked them up via environment vars, since the toolkit does include a vcvars32.bat that sets appropriate ones) if the VS lookup failed. Which is what the patch here: http://www.vrplumber.com/programming/mstoolkit/ does. Looks like you beat me to it. :) -- http://mail.python.org/mailman/listinfo/python-list
Re: Module question
Bill Turczyn wrote: Does python have a module similiar to the perl Spreadsheet::WriteExcel Thanks, Bill In a pinch, you can output an HTML table, give the file an .xls extension, and Excel will read it just fine. There's probably a better option in python (under win32, you could use win32com and drive Excel via COM for ex.) but this works in a pinch. -- http://mail.python.org/mailman/listinfo/python-list
Re: Accessing DB2 with Python
Jarek Zgoda wrote: Be aware, that it's a module for "normal" DB2, not a DB2/400. To access DB2/400 you have to use ClientAccess ODBC (from Windows or *nix platform) driver or iSeries port of Python (from AS/400). And just to be complete, under windows, using win32all, you can also use the OLE DB driver supplied with ClientAccess (IBMDA400), which offers some improvements over plain ODBC. Its been a long time since I did this, but it was *very* simple. I could probably dig up an example or two if necessary. Connection string basically looks like: Provider=IBMDA400;User ID=USERNAME;Password=PASSWORD;Initial Catalog=DATABASE_NAME;Data Source=AS_400_SERVER_NAME Provider,User ID, Password, and Data Source are required. Data Source can be either an IP address, or a DNS defined hostname. I've never bothered with 'Initial Catalog', but it would be one of the database names visible via WRKDBR. (Usually defaults to the default system name, which is shipped set to the system serial#) Optionally, you can add 'Catalog Library List=Lib1 Lib2 Lib3' to add additional libraries to the current library list for the connection. Last I knew, there were a few methods exposed by ADO that weren't supported via this driver, but like I said, its been a long time. I'm sure there's a pretty complete python ADO wrapper out there as well. -- http://mail.python.org/mailman/listinfo/python-list
odd problem with watsup and VB6 application with modal dialog
For various reasons, I've found myself in the position of needing to automate the operation of a small VB6 application from an external process. After a bit of searching, I found watsup, and it has fit the bill nicely, except for one problem. Roughly, I have a script that fills in a field, sets a combobox, then clicks a button via clickButton. At this point, the python interpreter hangs. The only thing I've been able to identify as different about this form is that it is set as dialog-modal. I've managed to work around this by adding a second python script that contains just enough code to click the offending button. I call it via os.system('start other.py') and it starts in a different process, clicks the button then hangs. But the main script continues on to fill in the following form, and click another button. When the VB app returns to its starting form, destroying the other form instances, the hung interpreter ends. This works, but it is quite the ugly kludge isn't it? Is this a normal behaviour for watsup with modal windows? Is there a saner way around it? I should point out I spend my days in the midrange world, so I'm largely ignorant of the vagaries of the windows API and such. -- http://mail.python.org/mailman/listinfo/python-list
Re: odd problem with watsup and VB6 application with modal dialog
Rob Williscroft wrote: > Here's a rewrite of the winGuiAuto.clickButton function, > post_clickButton() that uses PostMessage: Thanks for the info, I'll give it a try. -- http://mail.python.org/mailman/listinfo/python-list
Re: searching for IDE
alexrait1 wrote: > I need an IDE for python that has the ability to show the filds of a > class when I write "." > Just the way it works in eclipse/JBuilder with java or visual studio > with c++ > For now I treid eric3 and IDLE they don't do this... > The ActiveState python editor (pythonwin?) does this. -- http://mail.python.org/mailman/listinfo/python-list
Re: How to make python scripts .py executable, not bring up editor
korean_dave wrote: From command Prompt, i type in a script, "tryme.py". This, instead, brings up PythonWin editor and Interactive Window. Path variable is "C:\Python24". (I need Python 2.4 installed, not 2.5) How do I make it so that the script runs? Start->My Computer->Properties->Advanced->Environment Variables in bottom pane "System Variables" add ";.py" to "PATHEXT" -- http://mail.python.org/mailman/listinfo/python-list