15,179 Topics
| |
Hi, I've been working a lot with text widgets lately, and I have posted several questions here. Again, thanks for all your help. This time I'd like to post something I found out, so you can help me improve it. My program consists of two textboxes. The texts inserted in … | |
Hi! I'm doing software that controls my computer with a wireless navigator that includes Windows CE. I'm doing this with Python. Okay, so lets begin. One of those control options is audio volume controlling. I have a code, that can change Windows XP WaveOut volume on a scale of 0-255. … | |
Write a Python program that creates upside down sentences, like [B] upside down --> umop apisdn [/B] The sentence above is flipped 180 degrees around the end. Some freedom allowed, like an 'a' upside down and reversed is the closest thing to an 'e'. Conversely a 'w' would be a … | |
Does anybody know how to get data from the ethernet port? Is there a library for it? I don't really know how networking works Basically there is going to be a microcontroller sending data over ethernet, and I want to get the data it sends and write it to a … | |
Hi guys... I wanted to import DB2 in Python 2.6 so i downloaded the pydb2 egg file for python 2.6. I used the easyintaller to install the package also it ran successfully. when using eclipse i tried to import DB2 its not showing the package.. plz help me figure out … | |
I've been trying to find pygame that will work with python 3 on my Ubuntu machine far a while with no luck. I can find a version that will work with Ubuntu but now for python 3, or I can find one that will work with python 3 but not … | |
hello guys, I want your help about my code. the problem is when I want to apply in my phone show me this message error. (NameError:name 'app_lock' is not defined). this is my code : [code]import socket, e32, appuifw def choose_service(services): names = [] channels = [] for name, channel … | |
I'm looking for people to test a program, I've just finished the rewrite of a program and I need people to test for bugs etc... It's a program for developers written in python and wxpython-gui-toolkit It's made with the aim on linux, although windows-testers are welcome as well link: [url]http://launchpad.net/d-cm[/url] … | |
Hi everybody, I am experiencing a very weird situation here: I have a program that uses tkinter and python 3, but its search function isn't working under Windows. [CODE=python] from tkinter import * import tkinter.ttk def sort(): pass def find(): start = 1.0 while 1: find = text_to_be_found.get() pos = … | |
I'm currently working on an application that involves reading pdf files into a variable and passing them to a server via http POST method. On Linux, everything is fine because I can use cat and popen: [CODE=python]pdf = os.popen('cat testpdf.pdf').read() #read pdf data in Linux[/CODE] However, in Windows, the DOS … | |
I'm quite new to Python (and programming past pascal) so I'm looking for a relatively simple-to-understand way to do this. All help is much appreciated. I'm looking for the program to take a variable as if it were just normal code, I'll explain via example. I want the code to … | |
I have a set of objects of questions and answers and I need to return all possible combinations of each question and answer in a set of dictionaries. I am new to Python and have done some Google-ing but I don't think I know enough to even know how to … | |
Hi, I have a Text widget and a button that is supposed to sort the Text's contents alphabetically. This time I won't ask you how to do it, I'll rather ask you to correct me. This is how I solved the problem: [code]unsortedT = text1.get(1.0, END).replace("\n", "\n*").split("*") sortedT = sorted(unsortedT) … | |
I have put some xml data in a file the python code below and have been trying to figure out how to get the data from the file add another "person" and then save to the same file again. [code=python] from lxml import etree from lxml.builder import ElementMaker E = … | |
Interesting right? If you read [URL="http://www.daniweb.com/forums/post1252636.html"]this[/URL] amazing tutorial by lionaneesh, you will understand why I posted this brain-boggling code. | |
Hi, I have a different question today: how do I call the python interpreter AND tell it to open a python program from inside another program UNDER WINDOWS? My program is running fine, and it even has a text mode without any graphical interface. Under Linux, you click on the … | |
Hi, I am trying to write a python test script which will start a Server and Client locally and then transfer their STDOUT to two files. This I need to do from the same test script and the asserts should be the next step. When I am doing the same, … | |
Hi folks, I've got a little problem with my queries in sqlite3. I need to select 'brands' (a, b, c, ...) for a 'date' YYYY-MM-DD from my table. As you can see in my script, I'm able to build a query by passing 'selectedDate' or 'selection', but not both values. … | |
Does anyone here know how to use the UnRAR2 module? [URL="http://code.google.com/p/py-unrar2/downloads/list"]http://code.google.com/p/py-unrar2/downloads/list[/URL] I can't for the life of me I can't figure out how get it to do the same thing that zipfile does in a project I am working on. I want it to look for all files of a … | |
I've always loved games and decided to pick up dev as a new hobby. I'm aiming to do something like Johnny Lee and track head position for a VR display. I've heard it called frustum correction or the "portal effect". [URL="http://www.youtube.com/watch?v=Jd3-eiid-Uw"]Here is a link to see what I'm talking about.[/URL] … | |
I was looking for a StringBuilder type of thing to use in Python (I've been working in PHP, at work, recently, and cStringIO had momentarily slipped my mind), and found StringIO and cStringIO, but in doing so, I found a post that claimed that they both performed very poorly in … | |
Hi, I develop dynamic in-line assembler for python. Its very easy to use it from python and know you can optimize some routine in assembly language and use it directly from python. Its support both windows and Linux. If you are interest you can take look on web-page, [url]http://www.tahir007.com[/url] If … | |
like for a regular menu it would be: [CODE]def menu(list, question): for entry in list: print 1 + list.index(entry), print ") " + entry return input(question) - 1 items = ["bookcase", "sleeping dog", "couch", "closet", "rug", "door"][/CODE] [COLOR="Red"]How to create a menu to where when you entered 1 for bookcase … | |
| Simple functions for binary-to-decimal and decimal-to-binary conversion :) |
I am trying (first python attempt) to pull information from a web page and store is for further use. Here is the code that opens the page and gets the information. [CODE] # -*- coding: utf-8 -*- #python from urllib import urlopen myfile = urlopen('http://192.168.0.1/stlui/user/allowance_request.html%20target=%22allowance%22').read() print myfile [/CODE] The following … | |
Hi, I'm trying to make a frontend for the compile module in python. Everything works just right, except when the file has mistakes in the code that lead to a syntax error. It does raise the invalid syntax error in the terminal, but instead of executing the block inside the … | |
Hi all, in a python script file, I am having a open statement and then i write a "50000" to that file. And then within the script i am writing a scp command that transfers the file to a remote machine. In the local machine if i check the file … | |
| hello everybody! I have a main app, which imports another python file and uses its functions. my problem is now, that the external file itself needs some functions defined in the main app... if i copy the external files code and paste it into the main application, everything works fine, … |
Hi I writing a Python program to track and calculate the amount of money each of 8 customers spends on 12 grocery items. The code below works fine but The program also must congratulate the customer who spends the most money and offer that customer a $50 shopping spree.How can … | |
hi all, i need to get all the data in the list (which is posted in the form) and store it, separating each list item with comma's. Its really clear in the code...this is what ive tried so far..it doesnt compile and it seems to complain about this line of … |
The End.