How to execute a script from another script and other script does not do busy wait.

2010-01-07 Thread Rajat
is going to take longer. Please suggest how should I go about implementing it. I'm currently executing it as: import main from script2 ret_code = main() return ret_code which surely is not going to achieve me what I intend. Thanks, Rajat. -- http://mail.python.org/mailman/listinfo/p

Re: How to execute a script from another script and other script does notdo busy wait.

2010-01-07 Thread Rajat
On Jan 7, 2:21 pm, "VYAS ASHISH M-NTB837" wrote: > Use threads > > Regards, > Ashish Vyas > > > > -Original Message- > From: python-list-bounces+ntb837=motorola@python.org > > [mailto:python-list-bounces+ntb837=motorola@python.org] On Beh

thread return code

2010-01-19 Thread Rajat
Hi, I'm using threading module in Python 2.6.4. I'm using thread's join() method. On the new thread I'm running a function which returns a code at the end. Is there a way I access that code in the parent thread after thread finishes? Simply, does join() could get me that co

Thread get off from CPU occasionally. I suspect.

2010-01-29 Thread Rajat
the main function on a new thread, it always used to run completely. I used to run it as: exec("from " + passed_script_file + " import main") retCode = main() Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Re: Access NtQueryInformationProces() from Python

2009-07-01 Thread Rajat
On Jun 30, 2:10 pm, Tim Golden wrote: > Dudeja, Rajat wrote: > > 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 s

Accessing windows structures through ctypes.

2009-07-01 Thread Rajat
Hi, Using ctypes can I access the windows structures like: PROCESS_INFORMATION_BLOCK, Process Environment Block(PEB), PEB_LDR_DATA, etc? Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing windows structures through ctypes.

2009-07-01 Thread Rajat
> > Using ctypes can I access the windows structures like: > > > PROCESS_INFORMATION_BLOCK, Process Environment Block(PEB), > > PEB_LDR_DATA, etc? > > ctypes.wintypes lists all of the Windows structures included with the > module. > > You should be able to use ctypes.Structure class to roll your o

Re: Check file is locked?

2009-07-07 Thread Rajat
On Jul 8, 4:57 am, Lawrence D'Oliveiro wrote: > In message , Christian > > Heimes wrote: > > By the way most operating systems don't lock a file when it's opened for > > reading or writing or even executed. > > The general conclusion seems to be that mandatory locking is more trouble > than it's w

Re: Check file is locked?

2009-07-09 Thread Rajat
On Jul 8, 12:45 pm, Tim Golden wrote: > Rajat wrote: > > On Jul 8, 4:57 am, Lawrence D'Oliveiro > central.gen.new_zealand> wrote: > >> In message , Christian > > >> Heimes wrote: > >>> By the way most operating systems don't lock a

Re: Check file is locked?

2009-07-09 Thread Rajat
On Jul 9, 1:21 pm, Tim Golden wrote: > Rajat wrote: > > I've used the Handle.exe and got the following results: > > > ---­--- > > notepad.exe pid: 3540 COMP\rajatd > >     C: File  (RW-)

Re: Check file is locked?

2009-07-09 Thread Rajat
On Jul 9, 3:21 pm, Tim Golden wrote: > Rajat wrote: > > The Notepad process information is fine here. However, with wordpad > > the results are not much differentiating: > > > ---­--- > > wor

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

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
son I did this inside a thread is because I want application to wait until the backup created (making sure that the older ones are deleted and new one created) Can some one help in this? Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Is ctypes appropriate in my case?

2008-10-29 Thread dudeja . rajat
This is not appropriate for writing a wrapper. Please suggest some way to write a wrapper. Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Re: Is ctypes appropriate in my case?

2008-10-30 Thread dudeja . rajat
t; placed in the Pythonxx/dlls directory in your Windows Python installation. > Ctypes is mostly used to call functions in a dll that is *not* a python > extension module, that was not written for Python. > > -- > http://mail.python.org/mailman/listinfo/python-list > Well I did n

Re: Is ctypes appropriate in my case?

2008-10-30 Thread dudeja . rajat
e are some 150 APIs exposed by the dll. Is there any tool that can autogenerate some of the member functions for the class since new APIs might as well get added in future. Could SWIG be of use here? Cheers, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

Unpack less values from function's return values

2009-05-28 Thread dudeja . rajat
Hi, I'm using Python 2.5.2. I'm getting this error whenever I try to unpack less values from a function. ValueError: too many values to unpack I want to know if there is a way I can unpack less values returning from a function? Thanks, Rajat -- http://mail.python.org/mailman/listi

Looking out a module for Subversion

2008-08-12 Thread Dudeja, Rajat
ng for an open source IDE / editor that has source level debugging. Please suggest some tool. I'm intending to write a testing tool that uses Subversion. Is there some module available for subversion, out of the box, that I can import in my script? Regards, Rajat Notice: This e-mail is intended so

RE: Looking out a module for Subversion

2008-08-13 Thread Dudeja, Rajat
it does not mention what basic things need installation before you use the Dynamic Language Toolkit. So, my question is : what combination of packages are required for using eclipse as an IDE for python? Thanks, Rajat Notice: This e-mail is intended solely for use of the individual or entity to

RE: Looking out a module for Subversion

2008-08-13 Thread Dudeja, Rajat
_install.html I see that this link for Pydev provides a commercial version of pydev (so this points the evaluation version of it) . Is there any open source version of it? cheers, Rajat Notice: This e-mail is intended solely for use of the individual or entity to which it is addressed

How do I organize my Python application code?

2008-08-14 Thread Dudeja, Rajat
ay in Python way or an approach to organize my python GUI application code? I'll be using Eclipse and PyDev as my development tools. So, please suggest from these tools prespective. Thanks & regards, Rajat Notice: This e-mail is intended solely for use of the individual or entit

RE: How do I organize my Python application code?

2008-08-14 Thread Dudeja, Rajat
more output files (for example a text or graphic file) >you might want to have an 'output' directory in your project. >Some people use a 'src' directory, but that is not nearly as neccessary as in a complied language. Thanks Ken and Fredrik for your direction. Cheer

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

2008-08-14 Thread Dudeja, Rajat
Tkinter do I actually require Tk installed on my machine? Please suggest and where can I find both these modules? Also, please direct me to a good and short document on using Tkinter or Tk in Python. Cheers, Rajat Notice: This e-mail is intended solely for use of the individual or entity to w

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

2008-08-17 Thread dudeja . rajat
the GUI. For your convenience, I'm attaching this code also as myModule1.py . Please some one review it and help create me this GUI. PS: The desired GUI is attached as a GIF file. The version v1.4.5.1 is a label the contents of which are dynamically picked. Thanks and regards, Rajat &l

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

2008-08-18 Thread dudeja . rajat
m not able to >place none of the widgets correctly in the GUI. > >For your convenience, I'm attaching this code also as myModule1.py . >Please some one review it and help create me this GUI. > >PS: The desired GUI is attached as a GIF file. The version v1.4.5.1 is >a label the

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 = windll.af1xEvdoRD

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

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

2008-08-19 Thread dudeja . rajat
ion(version) print version for i in version: print i * Results are : 2, 1, 5, 0 Cheers, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-08-19 Thread dudeja . rajat
ng so quickly to all questions. 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) so that I can access it in some other module that will then display this version information in a Label Widet in GUI. So, what is the best way to store 'v1.2.3.4' in a variable? And, what type of variable is most suited (so as able to be used in other module probably, as string there)? Thanks, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-08-19 Thread dudeja . rajat
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) so that I can > access it in some other module that will then display this version > information in a Label Widet in GUI. > > So, what is the best way to store 'v1.2.3.4' in a variable? And, what > type of variable is most suited (so as able to be used in other module > probably, as string there)? > > Thanks, > Rajat > Googled and found : s = "v%d.%d.%d.%d" % tuple(version) print s it's working. Result is : v1.2.3.4 Thanks, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-08-21 Thread dudeja . rajat
efer some other entry level tutorial, the following is said to be > really good: > >http://www.ibiblio.org/g2swap/byteofpython/read/ > > > > -- > http://mail.python.org/mailman/listinfo/python-list > Thanks Fredrik for your support. Regrads, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-08-21 Thread dudeja . rajat
sion under Test self.lblVersionUnderTest = Label(master, \ text = "v2.1.5.0") self.lblVersionUnderTest.grid(row = 15, \ column = 2, \ sticky = W, \ padx = 30) Please sugges

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

2008-08-25 Thread dudeja . rajat
ould I call the Tix's combo box from my existing GUI application that heavily uses the Tkinter widgets? Kindly provide me some code examples. Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-08-25 Thread dudeja . rajat
isLib.set,\ > height = 1, > width = 30) > > Please suggest how could I call the Tix's combo box from my existing > GUI application that heavily uses the Tkinter widgets? > Kindly provide me some code example

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

2008-08-25 Thread dudeja . rajat
hnically called? Please suggest how can I do this? -- Regrads, Rajat -- http://mail.python.org/mailman/listinfo/python-list

How to bind an event in Tix combo box?

2008-08-26 Thread dudeja . rajat
n Tix combo box. Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-08-26 Thread dudeja . rajat
rsion(), C_getVesion() The functionality I'm lookking for is that depending on the dll passed the right getVersion should be passed. I'm able to load the all the dlls passed to the function but I'm not able to call the function names dynamically Please help Regards, Rajat -- http://mai

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

2008-08-28 Thread dudeja . rajat
> > Use getattr - same as with any other object. > Suppose some_dll is your loaded DLL, then: > > function = getattr(some_dll, function_name) > > -- > Gabriel Genellina > > -- > http://mail.python.org/mailman/listinfo/python-list Hi Gabriel, Thanks for the help. That solved my problem. -- Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-08-28 Thread dudeja . rajat
2. As a results of this messagebox (called before the mainloop) the original Gui started by mainloop doesnot work as desired. Some of the checkbuttons are displayed as unset (i.e un-ticked). These checkbuttons used to be set at initialization before I stared using this messagebox. Please help. Th

problem with execv command

2008-08-29 Thread dudeja . rajat
tried using a variable for http path but still I'm getting the same error Please help. -- Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-08-29 Thread dudeja . rajat
nother window" is inevitable, but you can hide and > show it again when needed. You could do something like this: > > import tkMessageBox > import Tkinter > > class App(object): >def __init__(self, master): >self.master = master > print &qu

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

2008-08-29 Thread dudeja . rajat
check whether the item is a list or just a string? Thanks, Rajat -- http://mail.python.org/mailman/listinfo/python-list

How to delete a ast character from a string?

2008-08-29 Thread dudeja . rajat
g. Please help -- Regrads, Rajat -- http://mail.python.org/mailman/listinfo/python-list

How to delete a last character from a string

2008-08-29 Thread dudeja . rajat
else: dirListFinal.append(item) item.endswith() does not seem to be working. Please help -- Regrads, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-08-29 Thread dudeja . rajat
indentation level as the "if" and delete those 3 lines. > > Not that these changes will necessarily fix your program, but they do > make it easier to comprehend for the reader. > > - Chris > >> >> >> item.endswith() does not seem to be working. >> >> Please he

Re: How to delete a last character from a string

2008-08-29 Thread dudeja . rajat
; for item in dirList: >>print item >>if item.endswith('\\') == True: >>item = item[0:-1] # This one I googled and >> found to remove the last character / >>dirListFinal.append(item) >>else: &

Re: How to delete a last character from a string

2008-08-29 Thread dudeja . rajat
# This one I googled and >>> found to remove the last character / >>> dirListFinal.append(item) >>>else: >>>dirListFinal.append(item) >>> >>> item.endswith() does not seem to be working. >>> >>

Re: How to delete a last character from a string

2008-08-29 Thread dudeja . rajat
t;>>print item >>>if item.endswith('\\') == True: >> >> if item[-1] == '\\': > > Which will fail badly if item is the empty string. > > > Rajat, rather than trying to invent your own code to join dir

How to delete elements from Tix Combo Box?

2008-08-30 Thread dudeja . rajat
se suggest how can I clear up the ( delete the entries) in combo2. Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Re: How to delete elements from Tix Combo Box?

2008-08-30 Thread dudeja . rajat
subLB = self.combo2.subwidget("listbox") subLB.delete(0, END) #Add the results to the combo box for results in resultsVer: self.combo2.insert(END, results) -- Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

How to clear the Entry subwidget of Tix Combo box?

2008-08-30 Thread dudeja . rajat
= self.cbAnalysisLibVersion.subwidget("entry") subEntry.delete(0,END) This does not seem to be working? -- Regrads, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Unable to clear Entry subwidget of Tix Combo Box

2008-09-01 Thread dudeja . rajat
= self.cbAnalysisLibVersion.subwidget("entry") subEntry.delete(0,END) But this is not working. Please help. Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-09-01 Thread dudeja . rajat
ince this closes my parent GUI ( the main GUI). Please suggest some other way around. Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

What is module initialization?

2008-09-02 Thread dudeja . rajat
be able to easily access the update value of the variable. Could some one provide me a sample code of module intialization? And how can I ensure that module initialization is done only once? Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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 imp

Re: What is module initialization?

2008-09-02 Thread dudeja . rajat
object to the importing module's namespace. > > have you read: > > http://effbot.org/zone/import-confusion.htm > > ? > > > > -- > http://mail.python.org/mailman/listinfo/python-list > Thanks for your help guys that I got my problem resolved. Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Looking for File comparison utility that produces actual differences

2008-09-03 Thread dudeja . rajat
for something that generates actual differences and moreover it is cross platform as well. As I need that same thing in both my windows and linux box. Even if it is a utlility please suggest. Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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
kMessageBox._show("Error", \ type='ok', icon='error', \ message="Error executing %s Test Harness" % libName) return None else: print retCode But the message is never displayed. Please suggest if there is something wrong with this code -- Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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
% libName) >> return None >> else: >> print retCode >> >> But the message is never displayed. Please suggest if there is >> something wrong with this code > > I think you should first show your message, *then* wait for the > process to finish. > > Paul > -- > http://mail.python.org/mailman/listinfo/python-list > Such a silly mistake I'm committing. Thanks a ton. -- Regrads, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Unable to start a process with subprocess Popen()

2008-09-08 Thread dudeja . rajat
ocess.PIPE).communicate()[0] batchFilePath is the path of the batch file. -- Regrads, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-09-08 Thread dudeja . rajat
ll = True, \ > stdout = subprocess.PIPE, \ > stderr = subprocess.PIPE).communicate()[0] > > > batchFilePath is the path of the batch file. > > > > -- > Regrads, > Rajat > Ok, I re-phrase my question

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

2008-09-08 Thread dudeja . rajat
PE, \ >> > stderr = subprocess.PIPE).communicate()[0] >> >> > batchFilePath is the path of the batch file. >> >> > -- >> > Regrads, >> > Rajat >> >> Ok, I re-phrase my question: >> >> there i

Looking for a Duo - file comparison and a file parser

2008-09-09 Thread dudeja . rajat
Or may be some one has written some parser? Any help is greatly appreciated. Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

problem updating variable in a module

2008-09-24 Thread dudeja . rajat
mod1 a = 20 mod.update(a) print mod.a < does not print anything mod1 a = 10 def update(someInt): global a a = someInt print a < this does actually print a = 20 Please help. Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Re: problem updating variable in a module

2008-09-24 Thread dudeja . rajat
this does actually print a = 20 > > I'm surprised it runs at all -- as far as I can see "mod" in > "mod.update(a)" and "print mod.a" is not defined. Did you mean "mod1"? > If I change it to that, both print statements print "20" as I'd > expect. > > I take it you do have a *really* good reason to use a global? > > -- > Tim Rowe > -- > http://mail.python.org/mailman/listinfo/python-list > -- Regrads, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

unable to parse the content using the regular expression

2008-09-25 Thread dudeja . rajat
c:\12.txt Config File:c:\abc.ini ### I intent to show only the things that differ with their proper headings(as above) Please help me to get the heading stuff out. Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Tkinter: Unable to update the text scroll

2008-09-25 Thread dudeja . rajat
this after the function func() has processed completely. PS : I'm not using any threading stuff here.. Please help me resolve this problem. Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-09-27 Thread dudeja . rajat
mat1 = pat1.search(line) if mat1: print line line = fd.readline() But the above prints the whole file instead of the hash lines only. Please help Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-09-27 Thread dudeja . rajat
le): >if "#" in line: > print line > > > > -- > http://mail.python.org/mailman/listinfo/python-list > Thanks Fredrik, this works. Indeed it is a much better and cleaner approach. -- Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-09-28 Thread dudeja . rajat
in %s'%' range" %(toleranceInPer)) TypeError: not enough arguments for format string I've also tried this: fdTolFile.writelines("\n\tdiff Not in %s \% range" %(toleranceInPer)) But still I get the same error Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-09-28 Thread dudeja . rajat
txtLogger.xview()) self.vsb.config(command = self.txtLogger.yview()) Please help. Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-09-28 Thread dudeja . rajat
character to the file using the following >> format: >> >> fdTolFile.writelines("\n\tdiff Not in %s '%' range" %(toleranceInPer)) >> > > Try %% :) > > Christian > > > -- > http://mail.python.org/mailman/listinfo/python-list > Thanks Garry & Christian. It worked. Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-09-29 Thread dudeja . rajat
print 'Path does not exist' This always prints the above print statements whether or not the Results folder exists or not. Is there any such function to check existence of files. / folder at Http paths? -- Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-09-29 Thread dudeja . rajat
> yscrollcommand = self.vsb.set, \ > wrap = NONE, \ > font = ("courier",12)) > self.hsb.config(command = self.txtLogger.xview()) > self.vsb.config(command = self.txtLogger.yview()) >

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

2008-09-29 Thread dudeja . rajat
wrap = NONE, \ >> font = ("courier",12)) >> self.hsb.config(command = self.txtLogger.xview()) >> self.vsb.config(command = self.txtLogger.yview()) >> >> >> Please help. >> >> >> Thanks and regards, >> R

Tix Combo box problem - remains in editable mode only

2008-09-30 Thread dudeja . rajat
) self.btViewComparisonResults.config(state = NORMAL) Please suggest what is that I am missing Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-09-30 Thread dudeja . rajat
else: > #Check box is ticked > #Enable the Tolerance text box > self.txtTolerance.config(state = NORMAL, \ > bg = "white") > #Enable the Reference Analysis Combo box > #self.cbAnalysisLibVersion.config(state = NORMAL, ed

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 -- http://mail.python.org/mailma

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
est of the widgets are tkinter widgets. So, 1. Is the above approach fine? 2. How can I stop the dos window from opening up? -- Regrads, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

2008-10-01 Thread dudeja . rajat
Test Automation") #Create GUI Object and pass the logger object myAppGUIObject = myAppGUI(myRoot, logger) #My AppGUI class creates the GUI which heavily uses the Tkinter widgets and only TixComboBox myRoot.mainloop() Please suggest if there is anything I'm missing. Thanks a

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

2008-10-01 Thread dudeja . rajat
t; myRoot.title("Test Automation") > > #Create GUI Object and pass the logger object myAppGUIObject = > > myAppGUI(myRoot, logger) #My AppGUI class creates the GUI which > > heavily uses the Tkinter widgets and only TixComboBox > > > > myRoot.mainloop() &g

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

2008-10-01 Thread dudeja . rajat
creen. My program is staring as : myRoot = Tix.Tk() myRoot.title("Test Automation") < some stuff> < ...> myRoot.mainloop() Thanks and regadrs, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Ctypes behave differenty on windows 2000 and windows XP

2008-10-02 Thread dudeja . rajat
ting as v1.3.5.0 But on wIindows 2000 it prints v0.0.0.0 Please suggest why does it happen. Thanks and regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

Login using usrllib2

2010-12-01 Thread dudeja . rajat
wser and supply a wrong password. It appears password is not accepting. I'm new to web programming. The aim is to automate user clicks on a web server which can be replicated using python and http. Please suggest / help. Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

How to check if file is open on Windows XP?

2009-06-19 Thread Dudeja, Rajat
only solution? Pleae suggest. Thanks, 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, privileged, company confidential and/or exempt from disclosure under applicable law. If the reader is no

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 propri

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 o

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

2009-07-03 Thread dudeja . rajat
e has done implementation and could pointing me in some right direction. Regards, Rajat -- http://mail.python.org/mailman/listinfo/python-list

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

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

Logging function calls without changing code

2017-05-24 Thread Rajat Sharma
Hi Everyone, Is there a way to log all function calls of a class without changing anything in that class. What I mean to say is if I have written a class previously and I want to enable logging in that then I would probably need to write the following before my function calls- logger.debug('