ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
Making a python file windows executable
dj.turkmaster


Joined: 03 Jan 2007
Posts: 0
Location: TURKEY
Reply with quote
Hello I am new to programming and i have started with python because it is easy to learn and open source. Well I have a problem but. I have made a calculator as all beginerrs do Smile Bu it only works on computers which have python. My program works on python's command line. Is it possible for it to run on cmd? Or is there any other way for it to run on a computer which doesn't have python installed? My program's code is like this: Well some places are turkish by the way Smile

Code:
#-*- coding:utf-8 -*-

from __future__ import division


while True:
   
    a = "(1) toplama"
    b = "(2) cikarma"
    c = "(3) carpma"
    d = "(4) bolme"

    print a
    print b
    print c
    print d

    soru = raw_input("lutfen yapmak istediginiz islemin numarasini secin: ")

    if soru == "1":
        sayi1 = input("toplama icin ilk sayiyi girin: ")
        print sayi1
        sayi2 = input("toplama icin ikinci sayiyi girin: ")
        print sayi1, "+", sayi2, "=", sayi1 + sayi2

    if soru == "2":
        sayi3 = input("cikarma icin ilk sayiyi girin: ")
        print sayi3
        sayi4 = input("cikarma ici ikinci sayiyi girin: ")
        print sayi3, "-", sayi4, ":", sayi3 - sayi4

    if soru == "3":
        sayi5 = input("carpma icin ilk sayiyi girin: ")
        print sayi5
        sayi6 = input("carpma icin ikinci sayiyi girin: ")
        print sayi5, "x", sayi6, ":", sayi5 * sayi6

    if soru == "4":
        sayi7 = input("bolme icin ilk sayiyi girin: ")
        print sayi7
        sayi8 = input("bolme icin ikinci sayiyi girin: ")
        print sayi7, "/", sayi8, ":", sayi7 / sayi8
   
View user's profileSend private messageSend e-mail
sherpya


Joined: 22 Mar 2006
Posts: 0
Location: Italy
Reply with quote
you need py2exe package, the site should have some simple examples to use it
https://www.py2exe.org/ https://www.py2exe.org/
View user's profileSend private message
dj.turkmaster


Joined: 03 Jan 2007
Posts: 0
Location: TURKEY
Reply with quote
I also found a gui of py2exe. Thank u sherpya. And by the way is clamWin's gui made by tkinter?
View user's profileSend private messageSend e-mail
sherpya


Joined: 22 Mar 2006
Posts: 0
Location: Italy
Reply with quote
wxpython
View user's profileSend private message
Making a python file windows executable
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic