15,190 Topics
![]() | |
Okay so when I open a file and I would like to pickle something to the file you are supposed to open the file in 'rb' (read binary) mode to load stuff from it. If you want to dump something the file is supposed to be in 'wb' (write binary) … | |
Hi, I have got a little problem with __setitem__ method. It works fine in single class, but if class member is instance of the same class method __setitem__ doesn't work on class member but on class. Here is an example: Here is a class with __setitem__ method: [code="python"] class MyClass: … | |
Hello, I want to use an new library i downloaded e.g. chilkat library ([url]http://www.chilkatsoft.com/python.asp)[/url], how do i do that ? I tried to put on the beginning of my code: [code=python] __path__ = ["dir_with_chilkat_pyd"] require chilkat [/code] but does'nt work. What i want to run: [url]http://www.example-code.com/python/http_loginForm.asp[/url] | |
Why don't either of these implementations actually write to the file? Code v1: [CODE] txtfile = open('C:/Python31/SKUs.txt', 'w') with txtfile: num = 817 while num <= 820: x = "G" + str(num) print(str(x), end=" ") num += 1 txtfile.close()[/CODE] Code v2: [CODE]txtfile = open('C:/Python31/SKUs.txt', 'w') num = 817 while num … | |
Hi all. I'm having a bit of trouble (maybe it's easier than I think..) finding the lowest and highest number in a tuple of lists. Here is my main tuple: [CODE=python]list_of = ([0,7],[100,25],[150,59],[300,189]) [/CODE] so pretty much, I need python to return the lowest and highest number for each 'item' … | |
Hi there. Iim wanting a button pressed to do TWO commands .. one after another. EG. instead of my current code musicbu = Button(root, text = 'Backup Music', width = 17, command = musicback1) and musicback1 is a def (): with a complete and working script, i wondered if i … | |
Hi guys, firs of all, im sorry for my bad english.. How can i learn OOP, its really hard and detailed. Firs of all, i dont know why i must use OOP. Thanks.. | |
Sigh. This error keeps appearing, and never ceasing -- ever: [CODE] *** Unrecoverable, server exiting! ---------------------------------------- ---------------------------------------- ================================ RESTART ================================ >>> Unhandled server exception! Thread: SockThread Client Address: ('127.0.0.1', 4323) Request: <socket.socket object, fd=1856, family=2, type=1, proto=0> Traceback (most recent call last): File "C:\Python31\lib\socketserver.py", line 281, in _handle_request_noblock self.process_request(request, client_address) … | |
I can't figure out how to make the stars go from 5 back down to 1, printing only 1 star at a time, I did half of it but now I'm confused. Here's the first part I've done:[CODE]#nested for loop # index = "*" count = "*" for index in … | |
i just got into this python thing and i asked my friend how to do this and he doesnt know he told me to write this here so you guys can understand how to make an if statement (if x == 10 to 24) with proper syntax | |
Hi I am developing a small application in that i have only labels. My Output like this.. S.No Customer Name Customer Code City 1. Raja 1242 Vsp 2. Sekhar 1243 Hyd 3. Ram 1244 Bang Hear i want to develop my application with one control ie, for example i have … | |
Hi everybody! For the last five days I`m working on a project and I see only python syntax in from of my eyes. I have a small problem and I got stuck. I have a string like this : file = "E:\xxx\yyy.txt" and I want to format it in order … | |
hi everybody! what plugin download in ecplise for phyton. sorry for my english skill | |
I've been unable to get to it for the last hour or so. | |
I just started learning Python a couple days ago, and my main goal for now is a text-based game, in which the user inputs commands to interact with the virtual world. My problem thus far, however, has been splitting a string up so that I can detect what action the … | |
Hey all. First post to this forum, though I have casually browsed threads here often in the past. I'm pretty new to Python but have several years of experience programming in C, C++ and Java. I've got a Java app currently deployed to Google App Engine and wanted to be … | |
Hello everyone, ok so I am working on this code that takes a string and splits it using the re module. The string contains words in between "<" and ">" (sometimes multiple words). Now what the program does is it splits the string using the two characters above. Then it … | |
Hello all I have been a hobbiest programmer for quite some time now and recently got back into it. I'm starting with a pretty simple program that will track inventory for my moms buisness. I've worked through most the common problems but can't seem to figure out why im getting … | |
Okay just started teaching myself python recently and am on to pickling stuff. I just wrote a simple program exactly like the tutorial said (a few different ones actually) and I am getting an error. Here is my code: [CODE] import pickle file = open('./text/pickle.txt','w') list = ['one',2,'three',4,'five'] pickle.dump(list, file) … | |
hi guys i can build and clean the vs solution in python and get the exe's to build but don't know how to create a window installer | |
Sorry I am asking a beginners problem between professional discussion.But I realy confused witch one is better.qt, gtk, wx, opengl or one else.please guide me with a clear comparison. Thanks dears. Editor ... moved from Re: Python GUI Programming (rule is: ask question in regular forum) | |
I'm wondering if anyone can help me. I don't know anything about python, but I have done some coding (javascript, PHP and a little bit of C) and I've just started my job and found out there is python installed on our server. A couple of months ago we had … | |
As title mentioned, i wan check the process of a application. What i wan is like tat: When i start a process A, then the process A completed, process B will start after that. Once the process B started, then the script will start execute next step. Thanks for help. … | |
hi i'm bayarja. i begin learning phyton. so what editor am i need? sorry for experts my english skill not good i hope you that you understanding my questions. | |
I'm writing a sweepMine program, but i do not know how to active the "click left and right mouse at the same time" event. how can i got it Thanks very much | |
Hello I'm wondering if there is a simple piece of code, simple enough to add to an existing piece of prograaming that can tell me how much space is free on my drive. The program will run from a changing USB drive letter (changing since each computer will assign a … | |
I happened to see (and isolate) the following problem and have 2 questions: 1) tkMessageBox is used extensively in my code. How do I make my code work without a significant re-write? 2) how do I tell the wonderful tkinter developers that there is a problem? The problem is seen … | |
Is there anything available compatible with Windows XP, wxPython 2.8 and Python 2.5 that could help me generate diagrams like this: [url]http://www.codeproject.com/KB/scripting/graphic_javascript_tree.aspx[/url] Basically I want to be able to use my data and make a mindmap with nodes that I can move around and double click to do stuff etc. … | |
Hello All :) i have an IP : 93.93.165.125 and my friend has an IP : 96.156.25.125. and i want to send file(200KB) . what can i do? sory for my english.:) | |
This a newbie question so I appologise before hand. Ive downloaded the python program and have started to ticker around using the newbie thread above. My question relates to an opensource project. Ive download the project and its in python. The project composes of client and server side software. Im … |
The End.