Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: a simple calculator
Post: RE: a simple calculator

I think i finally understand how to make it work. does this code look good to you? class calculator: def __intit__(self): self.num1=None self.num2=None self.num3=None ...
Solstice Code sharing 17 8,958 Jan-10-2018, 10:31 AM
    Thread: Curses could not find terminal
Post: RE: Curses could not find terminal

I have tried it with lxterminal, but nothing happened. I tried lxterminal in the terminal, and it worked. That means it is the right terminal, right?
Solstice General Coding Help 13 17,297 Jan-05-2018, 01:56 PM
    Thread: Curses could not find terminal
Post: RE: Curses could not find terminal

Oh, it didnt liked it. Output:Traceback (most recent call last): File "C:\Users\Hendrik\Desktop\Programmieren\Python\2\Calculator.py", line 16, in main sys.stdout.fileno() io.UnsupportedOperatio...
Solstice General Coding Help 13 17,297 Jan-04-2018, 08:02 PM
    Thread: Curses could not find terminal
Post: RE: Curses could not find terminal

I've cropped the code but now it just goes crazy. it keeps opening and closing terminals @_@ import curses import subprocess subprocess.call(['lxterminal'])
Solstice General Coding Help 13 17,297 Jan-04-2018, 05:27 PM
    Thread: Curses could not find terminal
Post: RE: Curses could not find terminal

It kinda does exactly nothing. XD It doesn't give me an error message but also doesn't open the terminal. It should do at least something without the name of the file, right? (this message should be i...
Solstice General Coding Help 13 17,297 Jan-04-2018, 04:22 PM
    Thread: Curses could not find terminal
Post: Curses could not find terminal

I want to start programming with the module curses in Python on my Raspberry pi3(with rasbian), But I already ran into a problem. I wrote my first 2 lines of code in IDLE3 and executed them: import...
Solstice General Coding Help 13 17,297 Jan-04-2018, 02:18 PM
    Thread: a simple calculator
Post: RE: a simple calculator

I just had an Idea. Instead of classes(The stuff that I totally dont get) You also could use definitions, comments, right? like this: #===================== #content name # #===============...
Solstice Code sharing 17 8,958 Jan-04-2018, 11:06 AM
    Thread: a simple calculator
Post: RE: a simple calculator

Interesting, but i have some real live problems that keep me down. I'll look how much I can learn in the upcoming time.
Solstice Code sharing 17 8,958 Jan-01-2018, 09:26 PM
    Thread: a simple calculator
Post: RE: a simple calculator

So the classes are there so you can keep it more tidy and overviewable, right? (I almost got it!:D) Ok, I will probalbly need some more time untill I fully understand the code, but somehow it will w...
Solstice Code sharing 17 8,958 Dec-30-2017, 11:45 PM
    Thread: a simple calculator
Post: RE: a simple calculator

I have tried something: import time run= True def myfunc(): a=input("first") b=input("second") c=int(a)+int(b) print(c) class myClass: def __init__(self): print(myfunc()...
Solstice Code sharing 17 8,958 Dec-30-2017, 10:12 PM
    Thread: a simple calculator
Post: RE: a simple calculator

I mean def myfunc() then you can call this function in the shell, so if def myfunc(): print("text") it will print text in the shell when you type myfunc() can this be automated so it can be...
Solstice Code sharing 17 8,958 Dec-30-2017, 02:06 PM
    Thread: a simple calculator
Post: RE: a simple calculator

I partially understand the code, but I could need some more help. Also, how is it possible to let the programm itself call self defined functions? example()
Solstice Code sharing 17 8,958 Dec-30-2017, 01:29 PM
    Thread: a simple calculator
Post: RE: a simple calculator

looks good, have not learned how to code this way, but ill take a look at it
Solstice Code sharing 17 8,958 Dec-29-2017, 11:59 PM
    Thread: Simple modular Programm
Post: RE: Simple modular Programm

This code was just some playaround of me, thanks for the tips. it right now dosnt much usefullness, but i'll remove the useless writer and replace it by a better one. ok, actually i didn't plan anyt...
Solstice Code sharing 4 3,268 Dec-29-2017, 10:46 PM
    Thread: a simple calculator
Post: RE: a simple calculator

Thank you ^^ print("simple calculator by Solstice") print("I-----I") print("I00000I") print("I-----I") print("I1 2 3I") print("I4 5 6I") print("I7 8 9I") print("I-----I") print("        ") print("when...
Solstice Code sharing 17 8,958 Dec-29-2017, 08:25 PM
    Thread: a simple calculator
Post: a simple calculator

A simple calculator, for simple calculations. print("simple calculator by Solstice") print("I-----I") print("I00000I") print("I-----I") print("I1 2 3I") print("I4 5 6I") print("I7 8 9I") print("I-----...
Solstice Code sharing 17 8,958 Dec-29-2017, 08:04 PM
    Thread: Simple modular Programm
Post: Simple modular Programm

A simple programm that can be expanded. Just follow the examle of the included programms, and make  this thing into a giant collection! please post your improved programm in this thread if you want t...
Solstice Code sharing 4 3,268 Dec-29-2017, 07:35 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020