15,190 Topics
![]() | |
Hello! I need to create a progress bar and up to this our this class [URL="http://code.activestate.com/recipes/492230/#clast"]http://code.activestate.com/recipes/492230/#clast[/URL] is the best class that fits my needs. I posted my problem at comments. Thanks, Danci Emanuel | |
Hi, I have installed "MySQL-python-1.2.2" in my CentOS 5.3 server using "python setup.py install" command. It is giving me the error as : Traceback (most recent call last): File "setup.py", line 5, in <module> import ez_setup; ez_setup.use_setuptools() File "/home/installars/MySQL-python-1.2.2/ez_setup.py", line 85, in use_setuptools import setuptools; setuptools.bootstrap_install_from = egg zipimport.ZipImportError: can't … | |
Hi all. I would like to be able to parse some data from a password protected site. The parsing of the data is already developed and tested (I manually logged in to the site and downloaded the source code for testing purposes). I am stuck at the log in part. … | |
Okay, so, my main problem here, is that I can't get my parameters from my function name to work with the other variables from the function. Here's the code: [CODE] def next_block(x): p1 = 2 p2 = 2.3 p3 = "c" p4 = "String" p5 = "3.4444" return p1, p2, … | |
Okay, I'm done with making a lot of threads with nooby quesions. Those were just some things in the back of my mind. But that's not the point. Here's a program that generates a random 8 character string. It consists of letters A-Z, a-z, and 1-9. There's 767,544,201,216 possible combinations. … | |
Hi guys, I've a problem calling a 'parent' PyQt4 method from inside an object that inerits it. Here is the code: [ICODE] import sys from PyQt4 import QtCore, QtGui class ItiaQPushButton(QtGui.QPushButton): def __init__(self, txt): super(ItiaQPushButton, self).__init__("Hello") print super(ItiaQPushButton, self).__doc__ #QtGui.QPushButton.setText("BO") def setText2(self, txt): self.setText(txt) #super(ItiaQPushButton, self).setText("PROVA") class Window(QtGui.QWidget): def __init__(self, … | |
Is it possible to run a .py file on a computer that doesn't have Python installed? I'm asking this because I was messing around with py2exe and noticed that every time I built an executable, it would create a 'python26.dll' along with some other files. I was wondering, if I … ![]() | |
Okay, I have yet another question that I could not find.I noticed that you can't set variables in for loops without having to do something (like in batch). I've tried googling it and doing a site search, I have gotten no results. So what would the code or command be … | |
I'm trying to open a usb webcam via Python. Can anyone give me a hint how to do that? Thanks, Shawn | |
Hi.. I would like to know how to create a variable while the program is being executed. Here's what should happen. The program asks for an input from the user and then creates a variable who's name is the value of the input and then assign's a value to it. … | |
![]() | Can anyone give me an example on how to use fft to see weather there is a certain frequency above a certain amplitude in the microphones current sample(s). |
Hi, I want to make a python program which allows to read data from a file starting from a line with a certain keyword, skipping 4 lines, beginning to write the contents to an output file and stopping after n lines. I tried so far an input with the re.search() … | |
Hi guys, I have been programming in python for just a bit over 2 years now. Being quite apt at it i was wondering, what can you do to really extend yourself in python? We have a lovely thread in the Projects for Beginners, but in some ways i have … | |
I'm making a program that shuffles a specific code. Each letter and number has a specific variable represeting them such as code1, code2, code3 etc. So lets say 1 is sait to code1, 2 to code 2, 3 to code3 etc. So here's what I've done, I've put the all … | |
Hi all, I want to implement print option on my program. For now I need to print ListCtrl. I'm doing google process and I posted here in case someone happens to know and is willing to help me, whether with code or advice. Appreciate | |
Implementing Save algorithm Postby Apostle on Fri Sep 04, 2009 4:48 pm Hello All, I have a project of allowing user to save guests in Guest Book. I use Python/wxPython/SQLite for that. I Have implement basic database operation as well as GUI. I can save to DB as well as … | |
Hi, I have written a simple chat server and a client that can connect to it. To make it more secure, I would like to add SSL to the connection process. How would I go about doing this? Thanks in advance. | |
I am trying to create a sudoku checker as my second project. Its not going well :D. So far i've got it to check for rows that are 9 digits in length - i'm not sure if that's correct.. [code]puzzle = [] row = raw_input() while row: puzzle.append(row) row = … | |
![]() | Can anyone help me. I am trying to create a audio frequency analyzer, that will look for specific frequencies in a wav file. TIA ![]() |
I'm very new to python, as you will discover with my newb question, I am trying to create a project that prints out Ascii Banners EG _________ _________ _______ _______ _______ |\ /|\__ __/ \__ __/|\ /|( ____ \( ____ )( ____ \ | ) ( | ) ( ) … | |
I want to copy a file to the clipboard. So if the user of my program goes into a directory or want to send the file attached in an email, they can just paste the file into the directory or email. I understand how to copy the file to another … | |
How do I pass an instance of a class to the __init__ method of another class so that I can access it's variables? eg: [CODE] class my_class: variable=0 variabletwo=9 a=myclass()[/CODE] How do I access the "variable" field of "a" from another class? I could write something like a.variable but that … | |
I understand that python provides a value for self when methods are called on the instance of a class. However, I don't understand how self works when assigning value to a variable of instance. [CODE] class snake: def __init__(self,name): self.name=name#this is the bit I don't understand. How is self.name #interpreted … | |
Hi All, I am trying to build an ISO for a python project on a Fedora environment. I want to make my iso secure by not including source file code in it. Is there any way to generate a rpm for my source code that do not contain any .py … | |
Are there any Python modules that convert strings to binary? (like [url=http://www.nickciske.com/tools/binary.php]this[/url] site) I googled 'python ascii to binary' and I found binascii but I can't figure out how to use it, well I don't think it's what I'm looking for. My plan is to write a script that takes … | |
If you’re a Ruby or Python developer building AJAX applications, you’ve got to learn JavaScript. Even if you’re converting Ruby code to client-side JavaScript with a tool like [URL= http://www.scribd.com/doc/220397/RJShow-it-works] RJS[/URL], it can still be helpful to know the AJAX component for adding features and debugging. Now Microsoft is promoting … | |
Marc Andreessen may not have actually been knighted for his contributions towards making the web what it is today, but if he were British then I am sure Helen Mirren would have bestowed that honor upon him alongside Sir Tim Berners-Lee. Not that a lack of a knighthood is stopping … | |
![]() | The user enters the full location of a file and the program determines whether the file is a sound file or an application and opens it after a user specified time. Example: Location: C:\Where ever\file.mp3 OR C:\Another Where Ever\prog.exe TIme(in mins): 10 ![]() |
![]() | A program which accepts a sentence from a user, and uses a [I]'for loop'[/I] and determines the longest word in the sentence entered. |
![]() | A code snippet which accepts a word or a sentence from a user, and then sorts it, and displays the sorted list. |
The End.