15,181 Topics
| |
Hi all I created [URL]http://pyarticles.blogspot.com[/URL] for Python knowledge. Let's check it out please | |
How do I best get a full display screen window using wxPython? | |
I was wondering if you could help me out. I have a list box that has seltext and every time i want to select another item in the list it adds on. for example i select "/hello" then it appears as "/hello" but then i select something else it will … | |
hi guyz, i'm a Python user (not so long) , anyway i've read some stuff about lua . i've written function like this [code]def pair(dic = {} ): return dic.keys(), dic.values()[/code] a dictionary is a parameter to the pair function . to use it like this : [code]dic = {1 … | |
Hi, I'm writing a dictionary program with Turbogears that involves using Chinese text. There is an HTML form that has a dropdown menu, a text field and a button. The input from the form (in this case a Chinese character) is passed to one of my methods. The thing is … | |
I have a problem with tree control and i don't know how to solve it, maybe someone can help me. What i'm trying to do is display widgets in a staticbox plus a help text when i select different items in a tree. For example when i select item1 in … | |
so when i run this in python interpiter it works [CODE] >>> import os >>> b= os.path.getsize("/path/isa_005.mp3") >>> b 2071611L >>> [/CODE] but when i run it in a script [CODE] b= os.path.getsize("/path/isa_005.mp3") FILE.writelines(b) [/CODE] i get an error. any one know how i can get it to print the … | |
Well im having a little problem with some tuples or more so about defining which tuple [CODE=python] #Start of my tuples Rock = ("Scissors","Fire","Snake","Human","Wolf","Sponge","Tree") Fire = ("Scissors","Paper","Snake","Human","Tree","Wolf","Sponge") Scissors = ("Air","Tree","Paper","Snake","Human","Wolf","Sponge") Snake = ("Human","Wolf", "Sponge", "Tree","Paper","Air","Water") Human = ("Tree","Wolf","Sponge","Paper","Air","Water","Dragon") Tree = ("Wolf","Dragon","Sponge","Paper","Air","Water","Devil") Wolf = ("Sponge","Paper","Air","Water","Dragon","Lightning","Devil") Sponge = ("Paper","Air","Water","Devil","Dragon","Gun","Lightning") Paper = ("Air","Rock", … | |
Hi I'm trying to start learning how to use Turbogears but I can't figure out how to install sqlite on my computer. I'm running Mac OS 10.4 and there are no precompiled binaries on the sqlite [URL="http://www.sqlite.org/download.html"]download[/URL] page for the Mac. They do list a cross-platform binaries that is stated … | |
My problem may be very simple. I want to use a Tkinter window to show informations to the user, so that he could enter his answers to the Python Shell. The problem is that when the Tkinter Window appears, the Python Shell will no longer receive any command before I … | |
Hello, I would like to save the drawings I have made on a Canvas with the Tkinter Module. Is it possible to make a .jpg or .gif or .bmp from a Tkinter window ? Thank you! | |
G'day, Back again, this time with three problems. The code below contains a white entry box that I'm trying to get rid of. The main reason I'm trying to get rid of it is that the game I'm working on has a scrollable GUI, and with 50 or so frames … | |
Hey everyone, I've recently needed to use python to retrieve a cookie from someone visiting my web site. This is all needing to be done server-side, so I will (i think) need to use the Cookie module. I've looked online everywhere, and I'm having a hard time figuring out exactley … | |
So I would really like to use Python to play some sound files -- it doesn't particularly matter what format, as they're just going to be basic "ping" type noises. However, it seems like whatever advice I find doesn't work out for my situation -- most modules seem to be … | |
Why does entering the expression 011 evaluate to 9? and 0111 = 73, 01111 = 585, and so on. | |
This function is part of a program to convert numbers between different bases. [code=language] num = 32 b1 = 10 b2 = 2 x = 1 def increasex(num,b2,x): if num%(b2**x) < num: x = x+1 increasex(num, b2, x) else: print x return x print increasex(num,b2,x) [/code] The parameters are the … | |
Over the past two weeks I have let a lot of negative thoughts creep into my mind and has resulted in the feeling of being lost. I'm working on my visualization again and trying to get back on track. Any suggestions, tips, tricks etc on how to remain in line … | |
Hey, I'm having trouble with an exercise from a book, here it is; " Write a program that reads the values for a random list of card from a file,(cards.txt) where each line in the file represents a single card with the rank and then suit seperated by a space. … | |
Hi all, Can I know if there's any other way to load and call functions inside a dll, besides using ctypes module? Thanks...... Best Regards Vincent | |
I was wondering if there is something in python similar to the begin expression in Scheme, and if not how would you write something in python to simulate it. | |
I've successfully made an engine for a point and click game, but I want to know how to put subtitles so you know what the characters are saying. All I know is how to parent text to a background, do I just need to make an invisible layer with a … | |
I am new to python and Tkinter. I was trying to build an addressbook for my class. I have the Tkinter GUI looking good - nothing fancy. Now I can't get my python part working. I want to keep the GUI in its own class and file. My two files … | |
Please I need help with the following exercise: 1.Write a program that continually reads in numbers from the user and adds them together until the sum reaches 100. Write another program that reads 100 numbers from the user and prints out the sum 2. Write a function that implements Euclid's … | |
How would you write a begin procedure in python that would be analogous to the scheme expression. | |
Hi! Probably that's gonna be absolutely no0b question, but I have to ask it: Say, I have two files, program.py and GUI.py. I have to launch the GUI from the program.py file, i.e. I have to call main function of GUI.py file from within the program.py. Could someone tell me … | |
How do i take results in a mutli dim array and write it to a text file. Each sub array goes on a new line. I am a newbie at this. [code] [[2934110, 'B1', 'D4', '7C7C7C7C804040404040F140404000'], [2934110, 5, 1, 1, '01', 'Actes Sud '], [2934110, 4, 1, 2, '8C00Dubbelganger (motief)'], … | |
Hi I am trying to get the mouse position on my Canvas [code] # -*- coding: cp1250 -*- import wx class Okno: def __init__(self,parent): self.okno=wx.MDIChildFrame(parent,title=u"Náhled situace",id=-1) self.okno.Maximize() self.okno.SetAutoLayout(True) self.okno.SetBackgroundColour("#FCFCFE") self.sizer = wx.FlexGridSizer(2,2,0,0) # Add canvas self.platno = wx.ScrolledWindow(self.okno, id=wx.ID_ANY) self.platno.EnableScrolling(True, True) self.sirka = 10000 self.vyska = 10000 self.platno.SetScrollbars(20, 20, self.sirka/20, … | |
Hi, I'm puzzled by how one positions in Tkinter. Take a look at the following code: [code=Python]print "...................................Hello, world!"[/code] This works fine in the Main Idle but when it comes to Tkinter I'm confused:confused: . The game I'm working on has about 30 "clues" dotted all about the screen. About … | |
Hi All, Urgent SOS!!! I developed my project using pyton 2.5 under winXP and had an issue in loading my dll if the target user is using Win2000. Initially, I thought it was caused by the dlls I created were not compatible with Win2k. Then, I wrote a simple MFC … | |
G'day, I've worked on your code Vegaseat and have come up with the following rough sketch of how my game will look in the end: [code=Python]# using geometry manager Tkinter.Place for layouts # tested with Python24 vegaseat 28apr2007 import Tkinter as tk import random as rn #help('Tkinter.Place') root = tk.Tk() … |
The End.