Forum: Python Jul 14th, 2008 |
| Replies: 3 Views: 460 Re: "simple" file parser i am making Well, I dont know where you want to insert the text, aka: between the <body> and </body> or between the </body> and </html> but, if you need to write at a specific line you could always copy the text... |
Forum: Python Jul 11th, 2008 |
| Replies: 2 Views: 473 Re: Python Image Veiwer/Sender Thank jlm699, I found my problem, I'm saving the the directory that I have them enter, that is an easy fix so, yey.
Cheers,
Micro |
Forum: Python Jul 11th, 2008 |
| Replies: 2 Views: 621 Re: Controlling mouse with Python in X I don't know what "X" is but, I do knoe how to click and move the mouse in python, you will need PyWin to do it. You simple need to use win32api like so.
import win32api
import win32con
from ctypes... |
Forum: Python Jul 11th, 2008 |
| Replies: 2 Views: 473 Python Image Veiwer/Sender Hi all, Ive been working on this script for a while, but, when I try to send it I get an IO error because, from what I see, its not saving the "temp.jpg" file. Not so important, the save function has... |
Forum: Python May 20th, 2008 |
| Replies: 9 Views: 929 Re: Mini Battle Tanks game HELP!!!!! I think he means, check if the tank's cords are less than -10 or greater than 10, and if so take action, like set it to the 10 or -10, maybe like so.
#positive numbers
if get_ypos > 10:
... |
Forum: Python May 19th, 2008 |
| Replies: 6 Views: 348 Re: Quick question For more lines of code/indentations, its the same exact thing, like so.
def MyFunction(x):
for y in range(0, x):
print y
print "====" |
Forum: Python May 19th, 2008 |
| Replies: 0 Views: 436 Python Mouse Control Hi everyone, I have looked through the ctypes documentation, but can't find anything about making the mouse click, I mean, I can get it to move, but not click. Thanks in advance. |
Forum: Python May 17th, 2008 |
| Replies: 4 Views: 375 Re: Lists & Passwords Hello, Looking at your code, you only need one thing changed, the if parts part.
#Start of the program
print "Welcome To the Server!"
#Varible i'm using for later on in the program
a = 0
#The list... |
Forum: Python May 14th, 2008 |
| Replies: 3 Views: 401 Re: Tkinter Hello again.
Well, heres a brief explanation of globals, using def addOne(): as an example.
Say I want to add 1 to a variable OUTSIDE the def addOne() statement like this:
var = 0
def addOne():
... |
Forum: Python May 14th, 2008 |
| Replies: 3 Views: 401 Re: Tkinter Hello, I have looked through your code and made a few modifications. I have added the operation buttons to the tk window, and, messing the code up myself, have found a way to make it work.
from... |