1
vote
1answer
31 views

Program/tools to develop a desktop gadget? [on hold]

this is more of an idea type question rather than a programming type question so please just let me know if this is the wrong place to post kindly. I wanted to create a desktop gadget, such as a ...
1
vote
2answers
47 views

virtualenv on windows installs in system site packages

I initialize my project with virtualenv through these steps(in Windows 7 OS): $ cd myproject $ virtualenv venv $ venv\scripts\activate and then I try to install flask $ pip install Flask but I ...
0
votes
2answers
52 views

Check if PID exists on Windows with Python without requiring libraries

Is there a way to check if a PID exists on Windows with Python without requiring libraries? How to?
0
votes
1answer
46 views

python: why does os.makedirs cause WindowsError?

In python, I have made a function to make a directory if does not already exist. def make_directory_if_not_exists(path): try: os.makedirs(path) break except OSError as ...
0
votes
2answers
41 views

How to execute batch file from Python so that it could alter environment of the calling process? [duplicate]

On Windows there's a 3rd party command line tool I would like to use in my python script. Let's say it's foobar.exe located under C:\Program Files (x86)\foobar. Foobar comes with an additional batch ...
0
votes
1answer
24 views

Python + Tkinter Windows 7 taskbar progress

I want to show the progress of my app in a taskbar button. I used this answer as a reference. Here's an example of what I do: import tkinter import comtypes.client as cc ...
0
votes
0answers
21 views

Google App Engine Launcher slow app response

When I try to access a local app from localhost:8080 using the GAE launcher, it takes about 42 seconds for a response every time very consistently. Even for the simplest apps like the hello world ...
0
votes
2answers
57 views

Computing folder size: Empty folders have a default size?

I'm trying to compute a folder's size in Python, but I have strange result. This is a snippet of my code: def bestsize(filepath): """ Return a tuple with 3 values. The first is the file (or ...
-2
votes
2answers
54 views

How to write a window in python [on hold]

I know python uses toolkits to write GUI's, but is it possible to write a simple, blank, custom window for MS Windows from scratch, without relying on a third party toolkit? If so, how would python ...
0
votes
0answers
10 views

HCI Socket with Python on Windows

In Linux i can easily get a raw HCI socket to a bluetooth adapter: import socket s = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_RAW, socket.BTPROTO_HCI) which does not work in windows. First of ...
-1
votes
1answer
23 views

COmmunication between windows host and centos guest through vbox [on hold]

I am trying to access the db which is there on my windows 7 machine through centos mounted on oracle virtual box. I am using python as the language, using Django. I have made the following changes ...
1
vote
1answer
15 views

Remove a network printer with Python's wmi module?

For starters, here's the WMI module I'm referring to. I've tried many combinations of code, and understand how to remove network printers with wmic from the command line, as well as a basic ...
0
votes
1answer
30 views

Python keyboard event does not respect layout

I have a problem with win32api.keybd_event in python (see script below): Under EN layout the script press "q" key then "1" key (seems ok). Under FR layout the script press "q" key then "&" key ...
0
votes
1answer
24 views

Ignoring windows hidden files with python glob

I am moving some files with a python script. The script should work on both osx and windows. I am using the the glob module to select the files. Filter out directories with isfile method from ...
0
votes
1answer
40 views

Tcl error : invalid command name tcl_findLibrary

This error appears when I type the following commands (using iPython)Tkinter.Tk(), %pylab, plot ..... or run pylab in general but import pylab doesn't fire any error. Tcl error : invalid command name ...
1
vote
0answers
15 views

how to capture the devcon.exe's output log under the the normal users?

Now I want to capture the devcon.exe's output in the normal users permission, How to capture commandline output the guy resolve this problem just in the administator's permission,yes! I can capture ...
0
votes
1answer
25 views

How to use espeak with python

I want to use espeak(http://espeak.sourceforge.net) with python2.7.0-32 bit in windows7 can anyone of you help in doing that and one more thing that i want to save an audio file generated by ...
2
votes
4answers
63 views

Merge two lines with grep or sed

I have such a problem: I have two files with keys: file1: aa, bb, cc, dd, ee, ff, gg; file2: aa, bb, cc, zz, yy, ww, oo; I need to write a script using grep/sed to produce two files: res1.txt - ...
0
votes
0answers
13 views

Pinger fof web application

I have a web application written in turbogears and I want to build a pinger to check if the web application is still alive! d you have any idea on how to achieve that? The problem we usually have is ...
0
votes
1answer
21 views

signal.SIGINT in windows cause process exit directly

I wrote those test python code as following: import signal import time import os def handler(signum, frame): print "do whatever, like call thread.interrupt_main()" return ...
1
vote
0answers
14 views

psycopg2 windows install missing file?

I am trying to work with psycopg2 but cannot get it to work. I have tried to install from the site http://www.stickpeople.com/projects/python/win-psycopg/. I tried the basic install and also as ...
1
vote
3answers
24 views

Open windows photo gallery from python

I want the end of a python script to open windows photo gallery from python I try: >>> os.system("C:\\Program Files (x86)\\Windows Live\\Photo Gallery\\WLXPhotoGal lery.exe"); I get: ...
0
votes
0answers
34 views

Python 3.3. not found in registry

I have python 3.3 installed on my windows system. When I do python -v I get 3.3 However when I try to install Pillow-2.1.0.win32-py3.3.‌exe from http://www.lfd.uci.edu/~gohlke/pythonlibs/ I get: ...
1
vote
1answer
31 views

Change Python environment variable PYTHONUSERBASE

How do I change the environment variable PYTHONUSERBASE. For example in Windows I want it to be: c:\mysite I tried this: set PYTHONUSERBASE=c:\mysite When I run python setup.py install --user ...
1
vote
4answers
39 views

Python, Getting All LAN IPs

I am trying to print all the Live IPs that connected to my Network in the fastest way. I tried to ping in a for loop, but it is very slow: def PingTry(host): ping = subprocess.Popen(["ping", ...
3
votes
1answer
39 views

IronPython WPF Load New Window

Bear with me, I'm new to GUI Programming, IronPython, WPF and .NET. However, I am fairly familiar with Python. I have browsed many online tutorials, but none seem to address the exact issue I'm ...
1
vote
0answers
50 views

Win 64bit GetThreadContext returns zeroe'd out registers, or 0x57 errorcode

I'm working on a Windows 7 64 bit machine (I have admin privs). I'm using Python 2.7 (64-bit) with PyDev ctypes for Eclipse to try and read the values of registers in all threads associated with a ...
0
votes
0answers
29 views

Read Environment Variable from all processes

I've got some quession about environment variables. I want to read and print environment variables to each processes in Windows system. But I`ve got a problem with it. I use Python, module "pywin32". ...
1
vote
1answer
26 views

tasklist does not list all Modules in 64-systems

I've got some problem. I'll tried to get all modules(dll files) for all processes on my machine. I tried to do this command in CMD: tasklist /m But it's a problem with 64-bit systems. If you`re ...
3
votes
3answers
68 views

How to embed python code in batch script

In bash, we can: python - << EOF import os print 'hello' EOF to embed python code snippet in bash script. But in Windows batch, this doesn't work - although I can still use python -c but ...

1 2 3 4 5 92
15 30 50 per page