Showing results 1 to 10 of 10
Search took 0.01 seconds.
Posts Made By: Capt.Micro
Forum: Python Jul 14th, 2008
Replies: 3
Views: 460
Posted By Capt.Micro
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
Posted By Capt.Micro
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
Posted By Capt.Micro
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
Posted By Capt.Micro
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
Posted By Capt.Micro
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
Posted By Capt.Micro
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
Posted By Capt.Micro
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
Posted By Capt.Micro
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
Posted By Capt.Micro
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
Posted By Capt.Micro
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...
Showing results 1 to 10 of 10

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:39 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC