15,181 Topics
| |
| Hi again, I am trying a competition entry (its old, purely to test myself) and I have come against a problem, this is the description for the competition: In a word game each letter has a score based on its position in the alphabet, A scoring 1 through to Z … |
Hello everybody, I made a wonderfull software, using Windows / python26 / tkinter / tkSnack. As long as I'm on my computer, it works fine. I try to distribute it, using py2exe. And I've not found the way to include tkSnack in the distribution. I tried also with pyInstaller, with … | |
I haven't been able to get my version of IDLE to open since I upgraded to snow leopard. Is this my unique problem? Or does snow leopard require a special version of IDLE? Thanks for any help. Don Jones (donjones77) | |
The module tkSnack from our friends at KTH in Stockholm, Sweden allows you to play a variety of sound files using the Tkinter GUI. Supported sound files are WAV, MP3, AU, SND and AIFF formats. | |
Hi guys, I have always wanted to write MP3 encoder in Python. I heard of Py-lame but I have never had hands on it and it is, to me a myth. Ok after trying thinking in ctypes, I thought the best way would be using lame.exe and subprocess. But as … | |
Hello all, One simple question.. We can set Tab bar for the tab widget in pyqt... I want to place a push button on tab1.. In what way i can do that??? Should i have to add this in the first tab in tab bar or in the tab widget … | |
Hello, I want ask something about Python CGI How can i use python on web application to run commands on the server For example : like in php when you will use "exec" function #!/usr/bin/python import os print "Content-Type: text/html\n" os.mkdir("/root/folder") print "done" this simple script working good if you … | |
Hi, I am zipping a folder and an error occurred in below code which says : ==> AttributeError: 'builtin_function_or_method' object has no attribute 'tell' [B]zipfile.py:[/B] [CODE] def write(self, filename, arcname=None, compress_type=None): ... zinfo.header_offset = self.fp.tell() # Start of header bytes ... ... [/CODE] FYI:I have tried using "from zipfile import … | |
Sockets are one of the most popular means of network communication and they follow client-server architecture. I have created two programs, one to run on a client computer and the other on the server computer. In my program I am showing how using a sockets client program can communicate to … | |
Hello! My application is crashing randomly, and I thought it might have to do with it manipulating widgets that are not yet mapped, despite them being already gridded. Have you experienced this problem? I supply some code that shows that the print function happens before tkinter recognizes the button being … | |
I made this Rock Paper Scissors Game with GUI. It works fine. But what can I do to make it simpler? Anybody? [CODE]import random class RPC: def __init__(self): self.comChoice = '' self.choices = ['Rock','Paper','Scissors'] def chooseCom(self): self.comChoice = self.choices[random.randint(0,2)] return self.comChoice def player(self, choice, Com): if choice == 'rock' and … | |
Hi, I want to change a variable in a definition everytime it is called. for example: when I click on button, it will print 1 when I click on button again, it will print 2 Is this possible? I have written this code but it doesnt work :) [CODE]k=0 def … | |
Okay, so what I want to do, is to take the following code, and make it so that way it keeps continuning for all of the word. [CODE]keycode = raw_input() matrix = [0, 0, 0, 0] for x in range(0, len(keycode)): y = ord(keycode[x]) if x > 3 and x … | |
Hi all, I have 2 jpeg files. I want to merge them into single file. How to achieve this using python. please help me | |
I have two questions on python threading: 1: is there is any speed performance or difference between Thread module and Threading module? 2: Is there is any other major difference between Thread module and threading module? I used thread module for my download manager project. i think this thread module … | |
I am writing a pygame program that has a moving background which is a sprite. I was wondering if/how you can make sprites appear on top of others (some kind of priority in what appears on top of what). I know the order they appear on top of one another … | |
hi everyone my rule ıs /sbin/iptables -A INPUT -p tcp --dport 111 -j DROP and ı want to forbıd tıll the port no 800.and ı donw want to wirte ıt down one by one. so ı want to make a loop that wıll change port adress(whıch ıs 111) add port … | |
hey guys, first post. I have a program that takes a file from a windows box, and FTP's it to a unix/linux box. The program works fine, however there is something i want to add to it. I want the program to send 2 commands to the unix box while … | |
Hey, I'm sorry for being such a python newb, but thanks for helping me out with the last one! Hopefully you guys will help a newb out again :) This time, I need to use a recursive function to basically do the same thing that the .replace function for strings … | |
Hey Guys, I have a test tomorrow and this question is going to be dead similar to my test question, and I'm a mech.E major but for some damned reason Python is a mandatory course for us. Please if any one could solve this I would be very grateful. Please … | |
Hi everyone! I have difficulties solving a plot issue: I have these two datas in an array: np.array([Q-value, length]) Q-value......length A.................60 B.................40 C.................90 B................150 C................230 A................220 I want to plot these like: Q-value..........total length A...................280 B...................190 C...................230 Though it seems easy above my "real" array contains a lot more values. … | |
My teacher gives a review sheet which is a lot like the exam if not the exam but with some minor changes. I'm stuck with these fill in the blanks. [CODE]Fill-In-The-Blank Word Frequency The following program gets the name of a file as a command-line argument, opens that file, reads … | |
Hi, I am a newbie here and a python newbie as well :) I am having trouble implementing a program in which you must use only recursive functions and no built-in python functions other than the len function in order to determine if there are duplicates of an item in … | |
Okay, I am writing a dopewars clone/wannabe in python. I have it pretty much the way I want it, except that selling items does not work. Buying them does fine, it is just selling them. Here is the code: [code] #!/usr/bin/env python # # pimp.py # # @authors: KarimRuan, # … | |
hello all, Can you tell me the syntax for setting stylesheets for tabs (sub-control) in tab bar like here [URL="http://doc.trolltech.com/4.3/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar"]http://doc.trolltech.com/4.3/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar[/URL] I've searched everywhere for the solution.. But no luck.. Can you please help me in this regard.. Thanks in advance.. | |
Hai friends, The problem here(in the code below) is i want to catch the minimize and close event of QTabWidget(by default this widget do not have any slot named close or minimize) to hide the widget.. so the only way the user can quit the application is by clicking exit … | |
I do php coding for some time and want to learn something new. After some researsh I ended up with 2 languages/frameworks but I can't choose between them. I'm a python programmer so python Django might be easier to start with. But I don't know a well-known website which is … | |
Hi, I am working currently with wxPython. I want to read out pdf pages(seperated files) and display them in wxPython and print them with win32print and win32ui. Is there the possibility to readout a pdf file and convert it to a wx.Bitmap or a wx.Image? please help. | |
[CODE]class calculator: def __init__(self, num, operator): self.__num = num self.__operator = operator def changeNum(self, newNum): a = newNum return a def getNum(self): return self.__num [/CODE] [CODE]def click(num): if num == "one": v = "1" elif num == "two": v = "2" elif num == "three": v = "3" elif num … | |
Hi friends I am new to python. I have doc file and jpg file. I want to append jpg file content to doc file. How to achieve this with python please help me. |
The End.