urhungry wrote:
What os will cake-write be for? If it's linux, I'll download it.
All OS's that Python is available for, and I KNOW that Python is available for Linux.
Offline
BWOG wrote:
You can make Civilization IV mods with Python
![]()
That's probably where I first heard of Python![]()
Same!
Last edited by waveOSBeta (2010-04-30 18:15:18)
Offline
Greatdane wrote:
ThePCKid wrote:
Code:
print "PUT SOME TEXT HERE"Doesn't work. But this works:
Code:
print("PUT SOME TEXT HERE")The first one works in 2.5.1.
The second one only works in 3.1.2.
Don't say things to act smart. I've seen you two times already be failed completely.![]()
The first works with 2.6 and lower.
The second works for all versions.
Offline
urhungry wrote:
ok. what's it for?
It's a not that good GUI module (you still have to code the GUI though)
Offline
gershmer wrote:
urhungry wrote:
ok. what's it for?
It's a not that good GUI module (you still have to code the GUI though)
Yeah, but it makes it way easier to make a GUI. Also, if you want a simple GUI, (dialog boxes, text boxes, ETC) try EasyGUI.
Offline
I bumped this a lot.
I finished a bit of my "notepad". It's called CodeEdit.
here
It requires PythonCard and EasyGui, but it's nice.
Offline
Offline
Greatdane wrote:
I bumped this a lot.
![]()
I finished a bit of my "notepad". It's called CodeEdit.
here
It requires PythonCard and EasyGui, but it's nice.
May I borrow the source code for CakeWrite?
Offline
For backwards compatability, I installed 2.6.5.
Now I have 2.6.5 and 3.1.2 on my computer!
Offline
somelia wrote:
Greatdane wrote:
....
May I borrow the source code for CakeWrite?
Absolutely!
Just remember to give credit where needed.
Offline
I'm such a n00b with Python.
from easygui import *
if ynbox("Are you gonna press the no button?", "Question"):
msgbox("But you didn't!", "Info")
else:
msgbox("But you just did!", "Info")Heh heh...
Make sure you have EasyGui installed
Last edited by ThePCKid (2010-05-02 16:35:53)
Offline
Greatdane wrote:
I bumped this a lot.
![]()
I finished a bit of my "notepad". It's called CodeEdit.
here
It requires PythonCard and EasyGui, but it's nice.
Should I open Codeit.py or Codeit.rsrc.py first?
EDIT: They both wont work.
EDIT: I have EasyGui and PythonCard installed but there were a couple errors in the PythonCard installation.
Last edited by ThePCKid (2010-05-02 16:01:59)
Offline
gershmer wrote:
My epic Python skills will be put into use in M30W.
If you know what that is, €1 for you. (If you it fn-f3 instead of shift-4, you get that sign on my comp)
M30W = Text based Scratch, also known as "Emerald". Now give me my €1 D:<
Haven't had time to mess with Phyton yet D:
Offline
Offline
Here's a simple calculator
num1 = float(input("First number: "))
oper = str(input("Operator (+, -, *, /, %): "))
num2 = float(input("Second number: "))
if oper == "+":
print(num1 + num2)
elif oper == "-":
print(num1 - num2)
elif oper == "*":
print(num1 * num2)
elif oper == "/":
print(num1 / num2)
elif oper == "%":
print(num1 % num2)
else:
print("Invalid operator.")Offline
soupoftomato wrote:
I saw a python once. It hissed an tried to bite me. I didn't see a way to program with it, just some really scary territorial threats.
We mean the programming language not the animal
Offline
Offline
Right now I'm making a fake OS in Python. Right now I only have the login script finished.
def load_the_os():
print("Under construction")
def try_to_login():
tempuser = temppass = ""
tempuser = str(input("Username: "))
temppass = str(input("Password: "))
if tempuser == username:
if temppass == password:
print("Logged in!")
for i in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]:
print('\n')
load_the_os();
else:
print("Incorrect password")
try_to_login()
else:
print("Incorrect username")
try_to_login()
username = password = ""
if username == "":
username = str(input("Enter your desired username: "))
password = str(input("Enter your desired password: "))
for i in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]:
print('\n')
try_to_login()P.S. Sorry port posting 5 times in row
Offline