15,190 Topics
![]() | |
a part of my script will read line by line of a large text file (about 120 lines) and needs to pick out the title. This is done by selecting everything between the 2 quotes. it will work for most of the file, then it will not. its seems to … | |
Hi all. My program currently does the followings: - It listens for certain packets on a certain IP address - Pops up a MessageDialog when receiving such packets. On this machine, I run a VNC server that output to display 1. When I VNC to the machine, I can see … | |
I want to make simple MSN/YAHOO Chat. I have some knowledge on sockets but I don't know what more I need to know. So My Question Is, what is pre-requisites before I jump into the Project. NOTE: The project is for learning Python/wxPython Thanks :D | |
Hello. I haven't ever needed to bother trying to do things to the console such as clearing one line, changing colours, etc. But now I was wondering if there is a (preferably built-in) cross-platform way of clearing just the current line in the console. I have a program which does … | |
hey guys im trying to work this out for a school assignment, i cant get the destroy function to work whith the button i created, heres mycode see if you can look at it and tell me whas wrong import Tkinter as tk root = tk.Tk() root.title('background image') def qwerty(): … | |
![]() | Hey guys! I want to make a Python script and I want to upload it online via Webs' free file hosting service. Basically, what I want to do is, when any user visits my website, the app stored on the server should immediately fire up and do some function(I haven't … ![]() |
Hi im working on an encyclopedia. The problem im having is the following: in next print car_num, len (car_list) NameError: global name 'car_list' is not defined [B]Line 62[/B] I might also add that before i moved car_list into a separate script/module, everything worked fine. The idea is basically to have … | |
So I've been trying this for a long time and I've given up. I can't code it myself and no examples are helping. I want to log on to a website and return some text from it. The returning text part won't be hard, the logging in is the problem. … | |
Well, I just had another issue resolved and have come to another one that baffles me, and as I can find little to no documentation on the pgdb module, I thought I'd sound you guys out again. I am attempting to insert values into a table in postgresql, and while … | |
Hey, So i am completely new to python. I am taking a course at school by distance and i am unable to get the help/explanation to complete...or really start, my assignment. I am supposed to make a working chequebook calculator. It will store cheques (the cheque number, the amount and … | |
Hello. As a new python student we all tried the password program Mine looked like this :) [code] def Password(): password = ent.get() if password == '12345': ent.delete(0,END) ent.insert(0,'Welcome Back Aiban') else: ent.delete(0,END) ent.insert(0,'Incorrect') [/code] ok ... it does it's job and shows me when i get it right or … | |
hi i am really stuck now i hope someone can help ok so i have read in a file i have created a dictionary which reads every line and counts how many matches there are compare={} for matching in line: matched =( matching[3],matching[7]) | |
![]() | Hey guys, In Java, there is a method called substring, but what substitute does it have in Python, or do I have to explicitly do it like: [CODE] s=raw_input("Enter a sentence: ") s2="" a=0 b=0 for a in s: if(a==' '): s2= s[b:a] b=a a+=1[/CODE] Thanks guys! |
hi all, i am pretty new to Python(a very new to this forum). have been programming in C & C++. i have a DLL written in C which i need to use. i would like to access it through Python instead of using Visual C++. i am having a problem … | |
Hi All, How can I increase the time for which the ToolTip is displayed. I currently have a radio button for which I have set a tooltip and the content is large. There is not enough time for the User to read it completely. I dont want to use the … | |
Hi, Is there a library/plugin that will allow me to display an MJPEG encoded image from a web server? I am developing an app in pygtk (using glade as GUI designer), and this server supposedly downloads a java applet to the client to handle streaming. Googling this has led me … | |
I am attempting to upgrade to Python 2.6.2 from Python 2.5. Everything installed successfully but import _tkinter fails. I then proceeded to install tcl 8.5.7 and tk 8.5.7 and reinstall Python 2.6.2 after making sure the appropriate directory was in the included directories list in the setup.py file. Any idea … | |
Iam finishing my little database based small project and I need to save current status for next time(The save option :) ) The stuff I want to save is just list of tuples and I have to save: 1. The List of tuple 2. The index of the last element … | |
I have some code which "requires python 2.5.2 or bytecode compatible." Would 2.5.4 work? 2.6.2? Any harm in installing either of these on the same machine as 3.1 (separate directories)? Windows XP if that matters. | |
Hello. I can't believe i'm stumped on this ok .. main menu again ..... nice fat quit button .. works great quit = Button(root, text = 'Quit', command = root.quit) awesome work hey .... i also have an about window (cleverly called awin) .. click it .. it tell you … | |
Does anyone have any game ideas I could do it pygame? So far I've done a breakout clone with special blocks that give you extra points or give you an extra ball | |
What is ctypes data for BOOL? I mean in C++ to ctypes we have: int--> c_int float--> c_float what about BOOL? | |
the cursus i'm taking on python (free on internet). said i know enough and that i should try creating some simple games like oxo. the problem is that i don't know how the create a framework for such a game any help is welcome. mathijs p.s. my english may not … | |
hey everyone, i am newbie to python, i was trying to write a script for the following problem statement(no it doesn't work..:( ).. here, is the code.. i have a few general querries about python also, plz help me out... thanks! [QUOTE] Problem D - Australian Voting Australian ballots require … | |
i know that 6/5 returns 1 and 6/5.0 returns 1.2 but suppose i am defining n=6 and d=5, i want n/d to return 1.2 instead of 1, how do i do it? | |
Hi Everyone. Consider this part two after solving part one of my output window issie basically 7zip i needed to output its text to a output window i had created inside my main menu where the button "backup" exists. The window within the window code looks like this. [code] outputLabel … | |
Hi all, I have been trying to add a kick command to pyborg-irc and cant figure out how to do it, the annoying thing is if I could figure this command out, I could then figure out several other commands, the script im using is quite long so I upped … | |
Hi I am making a text game, and I have made up a basic framework. I have 2 questions 1) Sometimes, the python interpreter bugs out, like saying that I misspelt a variable 'Item' as 'item' even though I can see the correct spelling infront of me, and the only … | |
Hello Everyone Thanks for the message of welcome in a previous post. I have many questions but i have sleected this one as it represents my favourite piece of not working code (hahaha) but it has been studied and altered so i got this bugger working .. mostly . Explain: … | |
Hey Guys. I've been given a Major for school where I have to create a Mathematics program in Python. The problem I am having is that If i try to set up a canvas with a background image, the buttons will not show any more!? the second problem I am … |
The End.