Login using usrllib2

2010-12-01 Thread dudeja . rajat
Hi All, I'm using urllib2 module to login to an https server. However I'm unable to login as the password is not getting accepted. Here is the code: import urllib2, urllib values={'Username': 'admin', 'Password': 'admin123'} url='https://172.25.17.20:9443' data = urllib.urlencode(values)

Check file is locked?

2009-07-07 Thread dudeja . rajat
How to check if a particular file is locked by some application? (i.e. the file is opened by some application)? -- Regrads, Rajat -- http://mail.python.org/mailman/listinfo/python-list

[Help] Python implmenentation of finding process's command line parameters.

2009-07-03 Thread dudeja . rajat
I'm looking for some python implementation of finding the command line parameters of a process on Windows XP SP3 machine. I found some links but they all point me to the direction of c/c++ implememtations. I've seen WMI, but this takes time to load. So I just though if some one has done

Re: Python implmenentation of finding process's command line parameters.

2009-07-03 Thread dudeja . rajat
I have had a look at psutil, however, this only works with Python 2.6.x and above. We are using Python 2.5.2 and updating python could pose certain problems. So, I'm not keep on using psutils. -- Regrads, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Access NtQueryInformationProces() from Python

2009-06-30 Thread Dudeja, Rajat
Hi, I'm looking for a way to call the NtQueryInformationProces() and ReadProcessMemory() of WindowsXP from Python. Can anyone direct me to some examples where they have been successfully called through Python? Thanks and regards, Rajat Notice: This e-mail is intended solely for use of the

How to get filename from a pid?

2009-06-25 Thread Dudeja, Rajat
Hi, I've a PID of a process (the process is a notepad application), I want to know which file is opened by this process. regards, Rajat Notice: This e-mail is intended solely for use of the individual or entity to which it is addressed and may contain information that is proprietary,

How to check if file is open on Windows XP?

2009-06-19 Thread Dudeja, Rajat
Hi, I'm looking for a fascility that can check if the file is open on Windows XP and if the file is open (say a notepad file is open), I want to close that file (i.e the notepad application) I found that there are no such methods available in OS modules. Is using Win32 API is the only

ctypes for Jython?

2008-10-31 Thread dudeja . rajat
Hi All, Is ctypes or something like this available for Jython? -- Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Re: Is ctypes appropriate in my case?

2008-10-30 Thread dudeja . rajat
On Wed, Oct 29, 2008 at 6:51 PM, Terry Reedy [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi, I've a dll and its header file that controls an hardware. I want to write a wrapper for this dll in Python. What is the best way that I can write a wrapper? What do you want to do with the

Re: Is ctypes appropriate in my case?

2008-10-30 Thread dudeja . rajat
For CPython, an importable module written in C. There is a doc Extending and Embedding the Python Interpreter. But I expect you can write the class in Python with ctypes. Thanks Terry. I'll be using ctypes now and have started writing the class. But the problem is that there are some 150

Is ctypes appropriate in my case?

2008-10-29 Thread dudeja . rajat
Hi, I've a dll and its header file that controls an hardware. I want to write a wrapper for this dll in Python. What is the best way that I can write a wrapper? I know ctypes modules and have used it before. As far as I know ctypes is only used to call the dll functions in a python module. This

Module or script for backup

2008-10-13 Thread dudeja . rajat
Hi, Is there a module or script already written for creating backup of files ? -- Regrads, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Getting windows error while making a backup

2008-10-13 Thread dudeja . rajat
Hi, I've this backup script that having some problems. Please some one suggest what is that I'm missing in it. This backup script deletes the previous backups and then create a new backup by simply renaming the original folder to backup folder and creates a new folder. The folder contains many

How to delete readonly and hidden files directories on windows xp?

2008-10-09 Thread dudeja . rajat
Hi, I'm using Windows XP and I'm looking for way out to remove .svn folders from my directory. But I'm unable to do that. Does any one one has written any script for removing the hidden / readonly files or directories? Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Ctypes behave differenty on windows 2000 and windows XP

2008-10-02 Thread dudeja . rajat
Hi, Im facing a strange problem with ctypes module on windows 2000. I did not face this problem with the windows Xp. The problem is this code and specifically c_long which behave differently on win2000 and winxp from ctypes import * h = windll.LoadLibrary(C:\\Windows\\System32\\myDll.dll)

Using Tkinter and Tix together opens a new DOS Window in addition to the actual GUI on windows XP

2008-10-01 Thread dudeja . rajat
Hi, I m using Tkinter and Tix. I'm using Tkinter mainly for all the widgets except for the TixComboBox for which I use Tix. My event loop starts like this: myRoot = Tix.Tk() myRoot.title(Test Automation)# myAppGUIObject = myAppGUI(myRoot, logger) #myAPPGUI is the class for creating GUI

Tix: Windows XP: Problem - how to stop root window from popping up with Tix

2008-10-01 Thread dudeja . rajat
Hi, Im using Tix on widows XP and I've tried many ways to suppress the root window. But so far I'm unable to do it. Please suggest how can I suppress the root window. My code is as follows: import Tix myRoot = Tix.Tk() myRoot.withdraw() myRoot.deiconify() myRoot.title(Test Automation)

Re: Tix: Windows XP: Problem - how to stop root window from popping up with Tix

2008-10-01 Thread dudeja . rajat
On Wed, Oct 1, 2008 at 11:44 AM, Lie Ryan [EMAIL PROTECTED] wrote: On Wed, 01 Oct 2008 11:33:59 +0100, dudeja.rajat wrote: Hi, Im using Tix on widows XP and I've tried many ways to suppress the root window. But so far I'm unable to do it. Please suggest how can I suppress the root

Tkinter on WIndows XP opens a blank screen. How can I get rid of it?

2008-10-01 Thread dudeja . rajat
Hi, I m using Tkinter and Tix to create a GUI on Windows XP. So far I've created the GUI and it just works. But the problem is as soon as I double click on the script it besides opening the GUI also opens a shell ( a blank screen) with it. Pleas suggest how can I get rid of this blank screen.

Tix Combo box problem - remains in editable mode only

2008-09-30 Thread dudeja . rajat
Hi I'm facing a problem with the tix combo box in a way that my combo box is always in an editable mode after I have cleared subwidgets Entry and Listbox from it. My setup is like this : CheckButton1 : If this is unset, the combo box should get disabled, the entries in it should get cleared (

Re: Tix Combo box problem - remains in editable mode only

2008-09-30 Thread dudeja . rajat
On Tue, Sep 30, 2008 at 11:57 AM, [EMAIL PROTECTED] wrote: Hi I'm facing a problem with the tix combo box in a way that my combo box is always in an editable mode after I have cleared subwidgets Entry and Listbox from it. My setup is like this : CheckButton1 : If this is unset, the

Backup a directory

2008-09-30 Thread dudeja . rajat
Hello, I'm looking for a script that creates a backup of a directory but keeps only one backup. I've tried using all the os modules commands but could not create one. Does any one has any such custom script or function? Thanks and regards, rajat --

os.path.exists() function does not work for http paths

2008-09-29 Thread dudeja . rajat
Hi, I have used os.path.exists() many a times for any file system paths in local system. But this does not seem to work for an Http path. e.g: To check is the Results folder exists at the following path, I do: if not os.path.exists(http://subversion.myCom.com/Testing/Results;): print

Re: Tkinter: scrollbar - unable to scroll the scrollbar if I click on arrow buttons of scroll bars

2008-09-29 Thread dudeja . rajat
On Sun, Sep 28, 2008 at 4:51 PM, [EMAIL PROTECTED] wrote: Hi, Im using a tkinter scrollbars for horinzontal and vertical scrolling. Well the problem is I'm unable to scroll if I click on the arrows buttons of scrollbars ( with both types of scrollbars) Please suggest if I m missing some

Re: Tkinter: scrollbar - unable to scroll the scrollbar if I click on arrow buttons of scroll bars

2008-09-29 Thread dudeja . rajat
On Mon, Sep 29, 2008 at 5:10 PM, [EMAIL PROTECTED] wrote: On Sun, Sep 28, 2008 at 4:51 PM, [EMAIL PROTECTED] wrote: Hi, Im using a tkinter scrollbars for horinzontal and vertical scrolling. Well the problem is I'm unable to scroll if I click on the arrows buttons of scrollbars ( with

Unable to write % character to a file using writelines() method

2008-09-28 Thread dudeja . rajat
Hi, I'm using the writelines() method to write some lines to a text file. But I'm unable to write the % character to the file using the following format: fdTolFile.writelines(\n\tdiff Not in %s '%' range %(toleranceInPer)) The second % does not get write to the file and Im getting errors.

Tkinter: scrollbar - unable to scroll the scrollbar if I click on arrow buttons of scroll bars

2008-09-28 Thread dudeja . rajat
Hi, Im using a tkinter scrollbars for horinzontal and vertical scrolling. Well the problem is I'm unable to scroll if I click on the arrows buttons of scrollbars ( with both types of scrollbars) Please suggest if I m missing some configuration. My code is as below: self.hsb =

Re: Unable to write % character to a file using writelines() method

2008-09-28 Thread dudeja . rajat
On Sun, Sep 28, 2008 at 5:51 PM, Christian Heimes [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi, I'm using the writelines() method to write some lines to a text file. But I'm unable to write the % character to the file using the following format: fdTolFile.writelines(\n\tdiff Not

Regular expression help: unable to search ' # ' character in the file

2008-09-27 Thread dudeja . rajat
Hi, Can some help me with the regular expression. I'm looking to search # character in my file? My file has contents: ### Hello World ### length = 10 breadth = 20 height = 30 ###

Re: Regular expression help: unable to search ' # ' character in the file

2008-09-27 Thread dudeja . rajat
On Sat, Sep 27, 2008 at 1:58 PM, Fredrik Lundh [EMAIL PROTECTED]wrote: [EMAIL PROTECTED] wrote: import re fd = open(file, 'r') line = fd.readline pat1 = re.compile(\#*) while(line): mat1 = pat1.search(line) if mat1: print

unable to parse the content using the regular expression

2008-09-25 Thread dudeja . rajat
Hello, I've the following results from Difflib.Compare() which I want to parse them using the regular expression to find out the the values that have changed. ## Testing DLL interface

Tkinter: Unable to update the text scroll

2008-09-25 Thread dudeja . rajat
Hi, I've a Tkinter application which has some widgets and a textbox with scrollbar, I call it txtScroll. The txtScroll is used to display the processing log that application is doing. Well the problem is that the txtSxroll is not able to display the log at the time some thing is processed.

problem updating variable in a module

2008-09-24 Thread dudeja . rajat
Hi, I've a problem updating my variable in a module. In my main program, I call a function from mod1 to update a variable of mod1 As soon as I update this varibale, I check it back in the mail program but it the variable from mod1 does not get updated. main Program: import mod1

Re: problem updating variable in a module

2008-09-24 Thread dudeja . rajat
Thanks Tim, Yes, I mean 'mod' only. But this does not work for me On Wed, Sep 24, 2008 at 4:19 PM, Tim Rowe [EMAIL PROTECTED] wrote: 2008/9/24 [EMAIL PROTECTED]: Hi, I've a problem updating my variable in a module. In my main program, I call a function from mod1 to update a

Re: problem updating variable in a module

2008-09-24 Thread dudeja . rajat
I take it you do have a *really* good reason to use a global? Please suggest some way other than using global. I want to get rid of it -- Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Looking for a Duo - file comparison and a file parser

2008-09-09 Thread dudeja . rajat
HI, I'm thinking of writing a file comparison utility in python. This utility will work as: 1. Compare 2 files for the differences. Both files contain some numerical results. 2. Generate a common file containing the differences (the same way as 'diff' generate an output) 3. Now, I will parse this

Unable to start a process with subprocess Popen()

2008-09-08 Thread dudeja . rajat
Hi, I'm using the subprocess module's Popen() to start a batch file. This batch file basically calls an exe which also gets started. Unfortunately, this does not produce any results. I looked into the Task bar that this exe has started but it does not consume and cpu so I believet that this exe

Re: Unable to start a process with subprocess Popen()

2008-09-08 Thread dudeja . rajat
On Mon, Sep 8, 2008 at 11:50 AM, [EMAIL PROTECTED] wrote: Hi, I'm using the subprocess module's Popen() to start a batch file. This batch file basically calls an exe which also gets started. Unfortunately, this does not produce any results. I looked into the Task bar that this exe has

Re: Unable to start a process with subprocess Popen()

2008-09-08 Thread dudeja . rajat
On Mon, Sep 8, 2008 at 4:43 PM, aha [EMAIL PROTECTED] wrote: On Sep 8, 7:23 am, [EMAIL PROTECTED] wrote: On Mon, Sep 8, 2008 at 11:50 AM, [EMAIL PROTECTED] wrote: Hi, I'm using the subprocess module's Popen() to start a batch file. This batch file basically calls an exe which also gets

How to bring subprocess to the foreground?

2008-09-06 Thread dudeja . rajat
Hi, I've a batch file that I open with the subprocess .Popen() . When this batch file is run I want to bring it to the foreground. Please suggest how can I do this? Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Re: How to bring subprocess to the foreground?

2008-09-06 Thread dudeja . rajat
On Sat, Sep 6, 2008 at 3:13 PM, Diez B. Roggisch [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: Hi, I've a batch file that I open with the subprocess .Popen() . When this batch file is run I want to bring it to the foreground. Please suggest how can I do this? You can't. You can

Want to display a message box while subprocess is running

2008-09-06 Thread dudeja . rajat
Hi, I m using subprocess module and using the Popen call. While the subprocess if running, I want to display a tkMessageBox(). Does some one has a sample code for this? Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Re: How to bring subprocess to the foreground?

2008-09-06 Thread dudeja . rajat
On Sat, Sep 6, 2008 at 6:53 PM, Paul Boddie [EMAIL PROTECTED] wrote: On 6 Sep, 17:58, [EMAIL PROTECTED] wrote: I though of displayin an information message on the screen through tkMessageBox while the subprocess is running, I did it using: try: testing =

Looking for File comparison utility that produces actual differences

2008-09-03 Thread dudeja . rajat
Hi, I looking for a file comparison utility in Python that works like 'diff' command in Unix and 'comp' in Windows. The present 'cmd' in filecmp module only presents output in the form of 1 or 0 i.e whether the 2 files differ or not? So, I'm lookin for something that generates actual

What is module initialization?

2008-09-02 Thread dudeja . rajat
Hi, I found on the net that there is something called module initialization. Unfortunately, there is not much information for this. However, small the information I found module initialization can be of use to me in my project. I'm currently messing with a problem where I'm keeping my global

Re: What is module initialization?

2008-09-02 Thread dudeja . rajat
While this is technically legal, you should restrain yourself from doing such a thing, unless you *really* know what you're doing and why. but the variable is not getting updated in the module containing global symbols ( variables). I suspect you didn't use a qualified name when importing.

Re: What is module initialization?

2008-09-02 Thread dudeja . rajat
On Tue, Sep 2, 2008 at 6:22 PM, Fredrik Lundh [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: # myglobals.py: answer = 42 # question.py import myglobals myglobals.answer = WTF ? But if I do :- #question.py from myglobals import * myglobals.answer = WTF ? will this work? with

Unable to clear Entry subwidget of Tix Combo Box

2008-09-01 Thread dudeja . rajat
Hi, In my combo box taken from Tix, how can I clear the entry subwidget? My case is like this: I have a check button which when made un-ticked should clear the entry from combo box (i. anything selected in combo box previously) I used the following commands: subEntry =

TkMessageBox - Using sys.exit() is a a great pain. Looking for other similar commands.

2008-09-01 Thread dudeja . rajat
Hi, I'm using a TkMessageBox for handling some errors and displaying them through the message boxes. My code is as below: if selectedVer == strNoArchivedResults: tkMessageBox._show(Error, \ type='ok', icon='error', \

How to delete elements from Tix Combo Box?

2008-08-30 Thread dudeja . rajat
HI, I'm using a Tix combo box (I call it combo2), the contents of which are loaded depeding on the selection in another Tix combo box(I call it combo1) I have used the commands: self.cbAnalysisLibVersion.insert(END, results) to insert elements to the combo box. I'm looking for some similar

Re: How to delete elements from Tix Combo Box?

2008-08-30 Thread dudeja . rajat
On Sat, Aug 30, 2008 at 2:32 PM, Fredrik Lundh [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I'm using a Tix combo box (I call it combo2), the contents of which are loaded depeding on the selection in another Tix combo box(I call it combo1) I have used the commands:

How to clear the Entry subwidget of Tix Combo box?

2008-08-30 Thread dudeja . rajat
Hi, In my combo box taken from Tix, how can I delete item in Entry subwiget? My case is like this: I have a check button which when made un-ticked should clear the entry from combo box (i. anything selected in combo box previously) I used the following commands: subEntry =

problem with execv command

2008-08-29 Thread dudeja . rajat
Hi, I'm facing problem with the execv command: my command is : os.execv(' C:\Program Files\Subversion\bin\svn ', ( 'list', ' \ http://subversion.stv.abc.com/svn/Eng \ ' ) ) The error I'm getting is : OSError: [Errno 22] Invalid argument I tried using a variable for http path but still I'm

Re: Tkinter tkMessageBox problem - message box is displayed with an additional window

2008-08-29 Thread dudeja . rajat
On Thu, Aug 28, 2008 at 3:54 PM, Guilherme Polo [EMAIL PROTECTED] wrote: On Thu, Aug 28, 2008 at 10:29 AM, [EMAIL PROTECTED] wrote: Hi, I'm working on Windows Platform I'm facing some problem with the tkMessageBox. My code is as below: import tkMessageBox import Tix from Tkinter import *

How to check is something is a list or a dictionary or a string?

2008-08-29 Thread dudeja . rajat
Hi, How to check if something is a list or a dictionary or just a string? Eg: for item in self.__libVerDict.itervalues(): self.cbAnalysisLibVersion(END, item) where __libVerDict is a dictionary that holds values as strings or lists. So now, when I iterate this dictionary I want to

How to delete a ast character from a string?

2008-08-29 Thread dudeja . rajat
Hi, I've a list some of whose elements with character \. I want to delete this last character from the elements that have this character set at their end, I have written a small program, unfortunately this does not work: dirListFinal = [] for item in dirList: print item

How to delete a last character from a string

2008-08-29 Thread dudeja . rajat
Sorry : Earlier mail had a typo in Subject line which might look in-appropriate to my friends Hi, I've a list some of whose elements with character \. I want to delete this last character from the elements that have this character set at their end, I have written a small program, unfortunately

Re: How to delete a ast character from a string?

2008-08-29 Thread dudeja . rajat
On Fri, Aug 29, 2008 at 7:40 PM, Chris Rebert [EMAIL PROTECTED] wrote: On Fri, Aug 29, 2008 at 11:25 AM, [EMAIL PROTECTED] wrote: Hi, I've a list some of whose elements with character \. I want to delete this last character from the elements that have this character set at their end, I

Re: How to delete a last character from a string

2008-08-29 Thread dudeja . rajat
On Fri, Aug 29, 2008 at 7:41 PM, Mike Driscoll [EMAIL PROTECTED] wrote: On Aug 29, 1:28 pm, [EMAIL PROTECTED] wrote: Sorry : Earlier mail had a typo in Subject line which might look in-appropriate to my friends Hi, I've a list some of whose elements with character \. I want to delete this

Re: How to delete a last character from a string

2008-08-29 Thread dudeja . rajat
On Fri, Aug 29, 2008 at 7:59 PM, [EMAIL PROTECTED] wrote: On Fri, Aug 29, 2008 at 7:41 PM, Mike Driscoll [EMAIL PROTECTED] wrote: On Aug 29, 1:28 pm, [EMAIL PROTECTED] wrote: Sorry : Earlier mail had a typo in Subject line which might look in-appropriate to my friends Hi, I've a list some

Re: How to delete a last character from a string

2008-08-29 Thread dudeja . rajat
On Fri, Aug 29, 2008 at 8:37 PM, Steven D'Aprano [EMAIL PROTECTED] wrote: On Fri, 29 Aug 2008 14:46:53 -0400, Derek Martin wrote: On Fri, Aug 29, 2008 at 07:28:40PM +0100, [EMAIL PROTECTED] wrote: dirListFinal = [] for item in dirList: print item if item.endswith('\\')

Re: Ctypes module - looking for a way to dynamically call exported function from a set of dlls

2008-08-28 Thread dudeja . rajat
On Wed, Aug 27, 2008 at 5:20 AM, Gabriel Genellina [EMAIL PROTECTED] wrote: En Tue, 26 Aug 2008 07:42:50 -0300, [EMAIL PROTECTED] escribi�: Hi, I'm using the ctypes module to load my dlls. I have some 10 dlls the names of those are passed to a fucntion which then loads the passed dll.

Tkinter tkMessageBox problem - message box is displayed with an additional window

2008-08-28 Thread dudeja . rajat
Hi, I'm working on Windows Platform I'm facing some problem with the tkMessageBox. My code is as below: import tkMessageBox import Tix from Tkinter import * if len(installedLibPath) != len(listOfLibraries): if tkMessageBox.askyesno(Question, \

How to bind an event in Tix combo box?

2008-08-26 Thread dudeja . rajat
Hi, I'm a newbie and created a new combo box with Tix. The combo box is filled with the required items. I've used Tkinter's listbox and used the ListboxSelect event and bind that with a callback. Now, I want to do the same stuff with the Tix combo box. Please suggest how can I do the same in

Ctypes module - looking for a way to dynamically call exported function from a set of dlls

2008-08-26 Thread dudeja . rajat
Hi, I'm using the ctypes module to load my dlls. I have some 10 dlls the names of those are passed to a fucntion which then loads the passed dll. Now every dll has a getversion function. eg: A.dll, B.dll, C.dll are the dlls and GetVersion functions are as: A_getVersion(), B_getVersion(),

Tkinter - How to create combo box using Tix with the existing Tkinter widgets/

2008-08-25 Thread dudeja . rajat
Hi, I'm using Tkinter module to create a GUI application. I found that the combo box is not present in Tkinter module. It comes with Tix module. Could some one give me an example to create a combo box whilst using Tix and Tkinter? I've been using the following to create my tkinter widgets:

Re: Tkinter - How to create combo box using Tix with the existing Tkinter widgets/

2008-08-25 Thread dudeja . rajat
On Mon, Aug 25, 2008 at 12:57 PM, [EMAIL PROTECTED] wrote: Hi, I'm using Tkinter module to create a GUI application. I found that the combo box is not present in Tkinter module. It comes with Tix module. Could some one give me an example to create a combo box whilst using Tix and Tkinter?

windows / Tkinter - Tix - combo box - how to bind function to an event

2008-08-25 Thread dudeja . rajat
Hi, I'm using Tkinter and Tix. I've created a combo box which I am able to fill it up. I'm want to call a function as soon as user selects some thing from the combo box. More precisely, I want to know how can i bind my function to this selection event. What this event is technically called?

Re: WindowsXP/ CTypes - How to convert ctypes array to a string?

2008-08-21 Thread dudeja . rajat
On Tue, Aug 19, 2008 at 8:14 AM, Fredrik Lundh [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I also add the letter 'v' same as you suggested. However, I'm looking to store this into some variable ( that variable could be be a string, tuple or anything, Im not sure which is the suited one)

Tkinter/WindowsXP - how to use checkbutton to toggle a label in GUI?

2008-08-21 Thread dudeja . rajat
Hi, I've a checkbutton in my GUI application which I want to work as: 1. it should be un-ticked by default, 2. should display a label in Gui, by default, 3. when user ticks the check button this should the above label goes off the screen and not longer is displayed. Please suggest how could

WindowsXP / CTypes Module - unable to access function in a dll

2008-08-19 Thread dudeja . rajat
Hi, I'm using the CTYPES module of python to load a dll. My dll contains a Get_Version function as: long __stdcall af1xEvdoRDll_GetVersion(long version[4]); This function accepts a long array of 4 elements. Following is the python code I've written: from ctypes import * abc =

Re: WindowsXP / CTypes Module - unable to access function in a dll

2008-08-19 Thread dudeja . rajat
On Tue, Aug 19, 2008 at 11:04 AM, [EMAIL PROTECTED] wrote: Hi, I'm using the CTYPES module of python to load a dll. My dll contains a Get_Version function as: long __stdcall af1xEvdoRDll_GetVersion(long version[4]); This function accepts a long array of 4 elements. Following is the

WindowsXP/ CTypes - How to convert ctypes array to a string?

2008-08-19 Thread dudeja . rajat
Hi, I've used CTYPES module to access a function from a dll. This function provides me the version of the dll. This information is accessible to me as an array of 4 long inetegers. information as : 2, 1, 5, 0 I want to display these elements concatenated as v2.1.5.0. This string ( I'm thinking

Re: WindowsXP/ CTypes - How to convert ctypes array to a string?

2008-08-19 Thread dudeja . rajat
On Tue, Aug 19, 2008 at 12:20 PM, Fredrik Lundh [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I've used CTYPES module to access a function from a dll. This function provides me the version of the dll. This information is accessible to me as an array of 4 long inetegers. information as :

Re: WindowsXP/ CTypes - How to convert ctypes array to a string?

2008-08-19 Thread dudeja . rajat
On Tue, Aug 19, 2008 at 12:40 PM, [EMAIL PROTECTED] wrote: On Tue, Aug 19, 2008 at 12:20 PM, Fredrik Lundh [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I've used CTYPES module to access a function from a dll. This function provides me the version of the dll. This information is

Windows / Tkinter - problem with grid - not able to place widgets at desired places

2008-08-18 Thread dudeja . rajat
Hi, I'm learning Python and Tkinter. I've started programming in Eclipse with PyDev. I'm intending to create a GUI. I'm not able to understand the Grid manager perhaps because there is quite a less documentation available for it on the net. My desired GUI is attached in the mail. Although I've

Windows / Tkinter - problem with grid - not able to place widgets at desired places

2008-08-17 Thread dudeja . rajat
Hi, I'm learning Python and Tkinter. I've started programming in Eclipse with PyDev. I'm intending to create a GUI. I'm not able to understand the Grid manager perhaps because there is quite a less documentation available for it on the net. My desired GUI is attached in the mail. Although I've

How do I organize my Python application code?

2008-08-14 Thread Dudeja, Rajat
Hi, I'm learning Python to write a GUI application using Tkinter Tk. I've evaluated Eclipse and Pydev. With the help of Fabio Zadrozny I successfully installed Eclipse and PyDev. Thanks. Now, I'm learning Eclipse and PyDev. And my problem is that I don't have an understanding of how the code

RE: How do I organize my Python application code?

2008-08-14 Thread Dudeja, Rajat
Fredrik Lundh wrote: That's all there is; there's no header files or declaration files or explicitly maintained object files etc; the program itself is just a bunch of Python files. I would simply add that if your python script produces one or more output files (for example a text or

ActiveState Python v2.5 doesn't come with Tkinter or Tk installed.

2008-08-14 Thread Dudeja, Rajat
Hi, So, now I've finally started using Eclipse and PyDev as an IDE for my GUI Application. I just wrote some sample programs as an hands on. Now I would like to take up Tkinter. I'm using Active State Python version 2.5 and found that there is not Tkinter and Tk module in it. To use Tkinter do

RE: Looking out a module for Subversion

2008-08-13 Thread Dudeja, Rajat
That's not really correct... Pydev should be able to debug (there's a video at http://showmedo.com/videos/video? name=PydevEclipseFabiofromSeriesID=8 http://showmedo.com/videos/video?name=PydevEclipseFabiofromSeriesID=8 which goes from configuring Pydev to debugging source code) and

RE: Looking out a module for Subversion

2008-08-13 Thread Dudeja, Rajat
Hi Fabio Download eclipse 3.3 from http://download.eclipse.org/eclipse/downloads/drops/R-3.3.2-200802211800 /index.php (you can download only the Platform Runtime Binary in that link) and then follow the instructions to install Pydev at http://fabioz.com/pydev/manual_101_install.html I see

Looking out a module for Subversion

2008-08-12 Thread Dudeja, Rajat
Hi, I'm new to Python. I only have read Byte of Python by Swaroop C H just to be familiar with sytax of python. I've installed Python 2.5 from Active State and using its PythonWin Editor / interpreter. This, unfortunaltely, does not help in debugging. I'm looking for an open source IDE / editor