473,395 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Small utility program for the windows


Hi,
I am trying to create a small utility program which would be configured
in registry. Something like this
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\ShortCut\command]
@="\"python C:\\workspace\\python\\Tut\\ShortCut.py\""
It gives me access denied exception when I try it.
Can anyone help me out.
Following is the code

from Tkinter import *
import sys

class BaseClass(Frame):
def __init__(self, master=None):
Frame.__init__(self, master)
self.grid()
self.createWidget()
def createWidget(self):
self.text=Text(self, width=20, height=3)
self.text.grid(row=0,column=0)
Button(self, text="ok", command=self.addText).grid(row=1,
column=0)
def addText(self):
print "hello world"

baseClass=BaseClass()
print sys.argv[0]
for i in range(0, len(sys.argv)):
print sys.argv[i]
baseClass.mainloop()

I have to modify the code further so that it takes argument.

This message contains information that may be privileged or confidentialand is the property of the Capgemini Group. It is intended only for theperson to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive thismessage in error, please notify the sender immediately and delete all copies of this message.

Oct 24 '05 #1
1 1527
It works fine for me (XP, Python 2.4.2).
Where exactly do you get the access denied ?
When writing to the registry, or trying to start python,
or within the python code ?

Roger

"Iyer, Prasad C" <pr***********@capgemini.com> wrote in message news:ma*************************************@pytho n.org...

Hi,
I am trying to create a small utility program which would be configured
in registry. Something like this
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\ShortCut\command]
@="\"python C:\\workspace\\python\\Tut\\ShortCut.py\""
It gives me access denied exception when I try it.
Can anyone help me out.
Following is the code

from Tkinter import *
import sys

class BaseClass(Frame):
def __init__(self, master=None):
Frame.__init__(self, master)
self.grid()
self.createWidget()
def createWidget(self):
self.text=Text(self, width=20, height=3)
self.text.grid(row=0,column=0)
Button(self, text="ok", command=self.addText).grid(row=1,
column=0)
def addText(self):
print "hello world"

baseClass=BaseClass()
print sys.argv[0]
for i in range(0, len(sys.argv)):
print sys.argv[i]
baseClass.mainloop()

I have to modify the code further so that it takes argument.

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read,
print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error,
please notify the sender immediately and delete all copies of this message.


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Oct 26 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: someguy | last post by:
Hi, I apologize in advance as I know this isn't the newsgroup for this type of question but this group has helped me out on many other issues so i'd figure i'll give it a shot. I need to find...
0
by: Zane Thomas [.NET/C# MVP] | last post by:
If, like me, your connection is being swamped downloading copies of the Swen Worm and bounce messages, you might find the utility I wrote today useful. Source for the utility is distributed with...
31
by: JS | last post by:
We have the same floating point intensive C++ program that runs on Windows on Intel chip and on Sun Solaris on SPARC chips. The program reads the exactly the same input files on the two platforms....
5
by: comp.lang.php | last post by:
Has anyone had any luck with file zipping utilities for PHP 4-5 and Windows XP with Apache 2.0.53? Following is my code snippet: PHP Code: if ($this->isSuccessful) { // RUN ZIP...
4
by: Arno R | last post by:
Since I have seen Tony T. around the last week I thought I'll try once more ;-) Hi all, I still have clients with apps running on Access 2.0 It would be nice if I could use the Auto FE...
2
by: Mike Metzger | last post by:
I've been running an Access2000 database for a couple years on a Win2k machine fine. We tried to copy the database over to another machine that already had Access2000 installed. When we tried to...
118
by: ramasubramanian.rahul | last post by:
hi .. can we design a program in c which will point out the possible memory leaks in any given c file and fix them.... i am trying to come with something like this but do not know where to start......
16
by: Bruce W. Darby | last post by:
I've almost completed my little application for work. This weekend I've been working on Streams so I can write a logfile showing the work that was accomplished. Wanting to make each logfile...
16
by: scholz.lothar | last post by:
I want to add some extension features to my program and this would require that i bundle a small c compiler with my program. On Unix it seems that tiny-c can do this, but i don't know about windows.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.