15,181 Topics

Member Avatar for
Member Avatar for defience

When my bot joins a room it will respond to certain words that are typed. An example would be that if someone typed "hello" the bot would reply "Hello <user>! How are you doing?" My problem is that I can't seem to get the bot to reply to NOTICE or …

0
87
Member Avatar for bergy_nj

hi i've been trying to parse the argument using getopt i need to have it to be able to handle argv[0] logfile (i ment to take the following argument after argv and put it in variable - like listed in the usage part) but i coudnt get it to work …

Member Avatar for BearofNH
0
215
Member Avatar for irotsenmar

Can someone assist me on creating this program? Thank you. create a program that will allow you to calculate the following: 1) The average gas mileage of a car 2) The range of a given car 3) The cost of a given trip 1) Create a Car.py file that will …

Member Avatar for jrcagle
0
111
Member Avatar for drexlus

I am new to Python and, in fact, I have limited programming experience in general. I am attempting to create a web form that our HR employees can use to add new employees into Active Directory and to create a mailbox for that user. AD is on a WIN2k server …

Member Avatar for katharnakh
0
1K
Member Avatar for newharvar

I want to change my desktop by writing a python program,can somebody help me ?thanks so much!

Member Avatar for newharvar
0
140
Member Avatar for maximuss

hi all, i have an assignment due tonight and i have been on this assignment for the past 4 days and my brain totaly shut down, below is what i need to do, it's namegame i enter my name on an html input form and the namegame.py will write my …

0
56
Member Avatar for StrikerX11
Member Avatar for biganimal

I all ready completed and ran a program that works fine in Python but now I'm looking to convert that code to C++ in Eclipse. I thought I would be able to import this code than have some miracle conversion take place. Is this possible or does the whole code …

Member Avatar for vijayan121
0
5K
Member Avatar for flaerpen

Hi there! How do I check if stdin is empty? This is how I write in the terminal to call my program: [CODE] >> cat file.txt | python script.py[/CODE] /flaerpen

Member Avatar for vegaseat
0
8K
Member Avatar for wandie

I got this error when i was running a tuturial on how to view data using a grid in wx. I downloaded the modules for wx. I wandering if anyone can help me. this is the error i got [code] Traceback (most recent call last): File "C:\Update\data.py", line 7, in …

Member Avatar for vegaseat
0
252
Member Avatar for flaerpen

Hi, I'm trying to use the function paste() to paste a image into another image but I can't get it work! Is it the right function to use or is there any other function that's better? Here's my very simple code: [code=python]from PIL import Image import ImageDraw im = Image.new("RGB", …

Member Avatar for flaerpen
0
11K
Member Avatar for missionpilot

Hey, I am writing a program that needs to share a cookie between internet explorer and the program I'm writing. Here's the scenario. A user logs into his account through IE, and then starts the program I'm writing. The program will retrieve the cookie from the IE cache and then …

Member Avatar for missionpilot
0
94
Member Avatar for katharnakh

Hi Bumsfeld, thanks for sharing, I haven't come across this before [quote=bumsfeld;398646] [code=python]# works on Windows or Linux, also Vista import os os.system(['clear','cls'][os.name == 'nt']) [/code][/quote] Can please tell me how is the following code is working. I mean, [code=Python] >>> ['clear','cls'] [True] 'cls' >>> ['clear','cls'] [False] 'clear' >>> ['a','b']['some_string' …

Member Avatar for StrikerX11
0
356
Member Avatar for flaerpen

Hello all, I've been seeking for an solutions but i'm stuck. I'm generating a image of cells (circles, using ellipses) from a file where there is coordinates that i use (x,y,r). This function draws these cells (alot of them) to a image and it works great. But I would like …

Member Avatar for flaerpen
0
126
Member Avatar for datulaida

hi all, I want to integrate Python 2.5 with JNI class.. Here my code.. actually, i want to integrate Apple Pie Parser (used C++ language) with Python.. the step is : 1) i build JNI class in Java that integrating with APP JAVA CODE import java.text.BreakIterator ; class Semantic { …

0
56
Member Avatar for freddypyther

Hi there! I'm wondering if there is a "package" instruction in python so I can in a directory keep packaging all the classes and I don't have to import them every time. I mean, if in a same directory I have a class DutiesManager that controls an array of instances …

Member Avatar for jrcagle
0
133
Member Avatar for DavidB

Hopefully, there are some Monty Python fans here who can help me. I recall seeing a Monty Python skit in which there was blood squirting all over. For example, one person played the piano and another person accidentally dropped the key cover down on the player's fingers. His fingers were …

Member Avatar for lasher511
0
137
Member Avatar for Ozipto

I am using python 2.3.5 and I just haven't seemed to understand why I get an error that says "SyntaxError: unqualified exec is not allowed in function 'parse' it contains a nested function with free variables". I am trying to develop a scripting language for my operating system that is …

Member Avatar for Ozipto
0
403
Member Avatar for Noyeaux

Taking on a pet project to teach myself some things and hone some amateur skills. Wondering if you could help point me in the right direction and assist me with some technical points as i get stuck. I have a basic idea of how i would do this,... but i'm …

Member Avatar for N317V
0
92
Member Avatar for shadwickman

I just started learning Python about 2 days ago, and I threw this program together, just to get the hang of it. The program just creates a file named "PythonTest.txt" in the same directory as the .py file. The user can then enter lines that are written to the .txt …

Member Avatar for katharnakh
0
170
Member Avatar for bm1167

Hi, This is my first post so I hope I explain myself well. I just started learning how to program about three weeks ago. I chose python becuase SPSS now can interface with Python. So this may seem like an obvious question. What I am trying to do is set …

Member Avatar for vegaseat
0
97
Member Avatar for fredzik

Hi, I need to put a time limit on a game, I think it's something like time.sleep() but have forgotten how it works. The game needs two minutes to be able to finish the game, but I have forgotten the formula. Can anybody enlighten me? Thanks for any help.:) fredzik.

Member Avatar for fredzik
0
92
Member Avatar for sharma_vivek82

Hi, i am a newbie in python, can any one tell me about synchrinization in python, i have googled about it, but could not get much clear idea.. Thanks in advance..... :)

Member Avatar for bumsfeld
0
78
Member Avatar for flaerpen

Hi, I wonder what the best way to compare one value in a tuple/list with all other, and not itself. I'm taking my values from a file and thos file can be very big so I also wonder how to optimize this, not to much so you can't see what …

Member Avatar for flaerpen
0
366
Member Avatar for sasindagi

hello, can anyone help me how to hide querystring in address bar eg: [url]http://localhost/products/category.aspx?id=c001[/url] & pid =p0045 to [url]http://localhost/products/category.aspx[/url]

Member Avatar for katharnakh
0
64
Member Avatar for anyedie

Im pretty much a python and for that matter a programming noob. I will learn and little, then quit, learn some more, and quit again. The past few times i've been working on the same project, and mostly keep giving up on python because I cannot seem to find an …

Member Avatar for katharnakh
0
99
Member Avatar for cameyo

I have a delimited text file with some data. I need to revert the data in this way: 1) the last line will be the first, and son on (invert all the lines) 2) each line must have a reverted data (last data item will be the first and so …

Member Avatar for katharnakh
0
126
Member Avatar for ThePATRIOT

if somebody can explain it in english Thanks Il sorgente che segue va copiato e salvato in un file con estensione .py ad esempio IO_SMS.py #Importo i moduli import MDM import GPIO import MOD #VARIABILI GSMNUMBER="xxxxxxxxxx" #Numero del destinatario dell'SMS SMSMESSAGE="Il modem Telit con python ti scrive ;)" #Messaggio dell'SMS …

Member Avatar for ThePATRIOT
0
177
Member Avatar for sebajo

I'm using Qt Designer to create the GUI for my application and then code the rest in Python, but I need to use the KActionSelector. However I don't know how to use it. When I add to to the form, it won't let me edit the available actions. How do …

0
65
Member Avatar for fredzik

G'day, Thanks Mr. Vegaseat, Jeff, Ene, Mawe for all of your great help so far...I'm slowly (very slowly!) getting used to Tkinter. But I'm again puzzled by how Tkinter does things. Some examples of code at the beginning say "from Tkinter import *" and some say "import Tkinter as tk" …

Member Avatar for fredzik
0
303

The End.