614 Posted Topics

Member Avatar for lllllIllIlllI

Hi I am making a program that collects data and then saves it to a text file. Then i want it to print the text file on a Network Printer and i was wondering how i would go about doing that?

Member Avatar for Ene Uran
0
93
Member Avatar for lllllIllIlllI

Hi I have been doing text programming for a while now and i was going to start doing some graphical interfaces for my programs but i was wondering which one is the best for beginners and also what and ther advantages/disadvantages of each of them. Thanks

Member Avatar for lllllIllIlllI
0
549
Member Avatar for jimcc

have you tried making the stuff you get from the file an integer That way it compares two integers not a string and an integer.

Member Avatar for Fuse
0
123
Member Avatar for JA5ONS

yeah that [0] was only there becuase there was a tuple in the previous versions of code

Member Avatar for JA5ONS
0
119
Member Avatar for JA5ONS

You should try using the time module [code] import time print time.localtime() [/code]

Member Avatar for lllllIllIlllI
0
151
Member Avatar for lllllIllIlllI

Hi I was wondering if there was any way i could use a module or some code to enable and disable my wireless network becuase i often have the problem that it wont connect and enabling and disabling it a number of times nearly always fixes it and i was …

0
50
Member Avatar for lllllIllIlllI

Hi I have been working on a blackjack program and i have hit a brick wall as one of my Global assignments isn't working for some reason [code] import random class Cards(object): def __init__(self): global cards global player global comp global comp_tot global playert cards = {2:4,3:4,4:4,5:4,6:4,7:4,8:4,9:4,10:16,'ace':4} player = [] …

Member Avatar for lllllIllIlllI
0
181
Member Avatar for lllllIllIlllI

HI I was having a look into classes and i noticed i saw a lot of things like [code] class fruitcake(object): pass [/code] my question is what is the point of the "object" being in the class arguments as it is a Built In Function and i couldn't work out …

Member Avatar for bvdet
0
106
Member Avatar for lllllIllIlllI

Hi I have the source of a webpage that tells the weather and i want to extract the data and my only hurdle left to jump is to remove all the formatting HTML marks inside and including the <> bracket. I have the web page source stored as a string …

Member Avatar for bumsfeld
0
106
Member Avatar for ymf

You could do it like this. [code] how_many_fibs = 100 x,y=0,1 while how_many_fibs: x,y=y,y+x print y how_many_fibs-=1 [/code] This will make 100 fibonacci numbers how this helps ;)

Member Avatar for ymf
0
115
Member Avatar for lllllIllIlllI

Hi I was making a program that tried to open firefox like this: [code] exec file('C:\\Program Files\\Mozilla Firefox\\firefox.exe') [/code] but i get an error [icode] exec file('C:\\Program Files\\Mozilla Firefox\\firefox.exe') File "C:\Program Files\Mozilla Firefox\firefox.exe", line 1 SyntaxError: Non-ASCII character '\x90' in file C:\Program Files\Mozilla Firefox\firefox.exe on line 1, but no encoding …

Member Avatar for lllllIllIlllI
0
123
Member Avatar for lllllIllIlllI

Hi I have been looking around for some good tutorials but i havent been able to find any especially for networking. i was wondering if anyone in the community could help. thanks

Member Avatar for jrcagle
0
113
Member Avatar for lllllIllIlllI

Hi i was wondering the best way to time how long a function/program takes i cant work out how to do it. I tried fiddling with the time module yet i keep doing the wrong things.

Member Avatar for woooee
0
84
Member Avatar for lllllIllIlllI

Hi My question is: i made a program that counts up and up continuously in the background but i want it to print what number it is up to when you press a certain button such as ENTER. I have tried using raw_inputs() but all that happens is it keeps …

Member Avatar for a1eio
0
8K

The End.