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)
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
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
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
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
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,
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
Hi All,
Is ctypes or something like this available for Jython?
--
Regards,
Rajat
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
Hi,
Is there a module or script already written for creating backup of files ?
--
Regrads,
Rajat
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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)
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
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)
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
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.
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 (
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
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
--
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
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
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
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.
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 =
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
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
###
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
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
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.
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
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
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
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
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
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
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
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
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
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
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 =
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
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
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.
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
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 =
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', \
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
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:
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 =
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
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 *
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
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
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
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
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
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
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('\\')
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.
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, \
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
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(),
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:
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?
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?
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)
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
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 =
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
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
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 :
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
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
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
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
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
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
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
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
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
83 matches
Mail list logo