15,190 Topics
![]() | |
I was wondering if there is a way to record video from a USB webcam to a .avi file (including sound). I know how to view video and capture screenshots, but I'd like to be able to record a section of video. If there really isn't then is there a … | |
[B]Hello , I'm new here as I'm new in python.. :D I need help in viewing database's data ,[B][U] I could view data in python[/U][/B] but i need to view it in GUI . [B][COLOR="Red"]i'm using:[/COLOR] - Qt designer - pysqlite[/B] Thank you all :)[/B] | |
I want to translate text inputted multiple times then output it. I am using the maketrans() function. I want to translate multiple times, by a number of times a user would input. | |
This is my code for anagrams not utilizing the ready prepared file of anagram synonyms to celebrate 11.11.11 11:11:11. If you start program it warns you about missing subdirectory dict and creates it. You may put any word files, one word per line, to file <dictionary name>.txt. Program lists available … | |
i am new to Python. And I am trying to make a drop down menu which will have some options (eg 4 options). I also need a Ok button in the same window. The user needs to select an option and click on "Ok". I need only single selection. When … | |
Hey guys I've been trying extremely hard to get these functions to work but they don't unfortunately and I do not know whats wrong with it "beginner python user" I have to return a new list that contains items from the list image that pass the filter (a str)so far … | |
hey ppl Trying to get this code working for this gui cube game It is an assignment so i'm being honest, I have know idea on how to get the tkinker function to work. have searched the internet but still having problems in getting it too work. I have tried … | |
How are you guys doing today? I'm having a hard time with my CS project. I have to write a hangman python code but it is kinda different from what I've seen around. I'll post my code and then explain what I am having trouble with: [CODE]from hangman_support import * … | |
I want to take a function and repeat it by an amount which a user will input. Thanks in advance! | |
[CODE]class Personaje(object): def __init__(self,vida,posicion,velocidad): vida = None posicion = None velocidad = None recibir_ataque = None def recibir_ataque(vida): recibir_ataque in range(1,100) vida - recibir_ataque print "La vida actual del personaje es de", vida, " Luego de haber recibido", recibir_ataque, " de dano" def excepcionVida(vida): if vida <= 0: print "El … | |
I have this bit of python code that imports pygames to draw lines. It auto creates lines when two or more points are clicked on. I'm bad at explaining but you'll see when you run the code. It's pretty simple but I find it kind of fun to mess with … | |
Hey guys, I'm working on my game project for college, I have the code started, just enough to put the sprite on the screen and have a scrolling background. It is telling me there are no errors but when i go to run the game it terminates immediately, it's got … | |
Hi everyone....iam electronics engineering student and i have experienced some c++ ,i mean i know till oop basics... i want to learn scriptig language for EDA, i want to know which to learn...Perl or Python?....can python do everything perl can do??....i hear that perl is much harder to learn...is it … | |
Hi, I want to create a matrix containing 20 rows and 2 cols. I know how to do this, but I have these two files; number and amount (each file contains 1 col and 20 rows) and I don't know how to add these files into this matrix that I'm … | |
hi i'm having some trouble with web2py models: [CODE]# -*- coding: utf-8 -*- db = DAL("sqlite://storage.sqlite") from gluon.tools import Crud crud = Crud(db) db.define_table("shout", Field("author", "string"), Field("shout","text")) db.shout.shout.requires = IS_NOT_EMPTY [/CODE] (there is more but it is for the admin interface) It is all correct but I get this error: … | |
This is a program to extract/compile car NAV .KWI extensions. Unfortunately, I do not know anything about Python though I will love to learn some time very soon. Could you help me compile this into an executable file for windows 7? Will be reatly appreciated. [CODE]#!/usr/bin/env python # # kiwi … | |
Hello, I have to count the number of words in a .txt file. Here is my program so far [CODE]import string ofile=open(raw_input("Please enter the name of a text file :")) s=ofile.readlines() print s word_freq={} word_list=string.split(s) for word in word_list: count=word_freq.get(string.lower(word),0) word_freq[string.lower(word)]=count+1 keys=word_freq.keys() keys.sort() for word in keys: print word,word_freq[word][/CODE] As … | |
Hi, I'm very new to Python and programing in general and wanted to learn how to use the py2exe module. I think I've done the setup alright but I get an error message. Everything runs along smoothly until it start to make the dist folder. When it begins to make … | |
Hi, i've both pyhon 2.7 and python 3.2 installed on my windows PC. I downloaded and installed the module BeautifulSoup but it got installed only in python 2.7 how can i installed this also in python 3.2. | |
I've got a problem trying to replace keys (dictionary) that I have in a file, with its corresponding values. More details: an input file called event_from_picks looks like: EVENT2593 EVENT2594 EVENT2595 EVENT41025 EVENT2646 EVENT2649 Also, my dictionary, created by reloc_event_coords_dic() looks like: {'EVENT23595': ['36.9828 -34.0538 138.1554'], 'EVENT2594': ['41.2669 -33.0179 139.2269'], … | |
I am still trying to take a look at the gtk GUI package and reinstalled the following: gtk-win32-devel-2.8.6-rc3.exe and pygtk-2.8.2-1.win32-py2.4.exe (updated version) I have it down to a simpler error message now. Here are my warnings and errors with the sample file base.py [code]Traceback (most recent call last): File "D:/Python24/Atest/Demo/pyGTK/base.py", … | |
I started taking a "introduction to programming" class a month ago, and the introductory language we are using is Python. Because I have never programmed before and only have a month's worth of experience with Python, please forgive my mistakes. So basically, here's the prerequisites to the "Piglatin Translator" assignment … | |
I'm looking at learning Ruby (including Ruby On Rails) or Python (Including any of its frameworks - though which is better?). What are the pros/cons of each? Thanks in advance. | |
i have things in a text file an index of movies that one owns and can add more but when i want to add a new one but when i have it print the line of a text file it just does this. i k o g n how can … | |
I have been trying to figure out how to associate data with the event of checkbox being checked. The problem is that my data is stuck in a 5 keys deep dictionary (dict{dict{dict{dict{dict{}}}}}). I have tried crawling through the parents and getting their labels since they are created from the … | |
Hi, I'm trying to execute an if loop inside a program to extract some values. But I only want to extract them if the following is true, [CODE]if ((letter in lines) == (letters in data)) and ((nr in lines) == (nr in data)) dt = a*c outfile.write(dt + '\n') elif … | |
i need to write a function changeName(name) that takes a string value as an argument. where name is in the form last,first,middle. the function should return a string that has the name in form fits,middle,last. [CODE][/CODE] name1 = input("Enter your name") def changeName(name): fields = name.split(",") return fields fields = … | |
Hi everyone im making a program to keep track of your movies just keeping it simple ! but im having a problem i am writing what movies you have to a text file but i cant append to it every time i write to the text file it overwrites everything … | |
Is there any way to shorten this function by way of an array, list or the like? I've tried various methods (no pun intended) but can't seem to make it work, I'm getting errors coming out the wazoo! I don't want the code, just point me in the right direction.[CODE]def … | |
Wrote this for my college open evening just to give prospective students a taste of python. added a little "information" section just to bulk it out a bit (this section is slightly messy i know). Not sure if it works in command line, definitely works in IDLE but the command … |
The End.