![:P :P](./images/smilies/icon_razz.gif)
![post-36326-1110185726 :pt36:](./images/smilies/post-36326-1110185726.gif)
poprostu nie wiem jak to zrobic
![Embarassed :oops:](./images/smilies/icon_redface.gif)
![:P :P](./images/smilies/icon_razz.gif)
jak połaczyc program z oknem ???? chodzi mi o to zeby program odpalal sie w tym oknie ktore zrobiłem
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
program
Kod: Zaznacz cały
#!/usr/bin/python
# -*- coding: utf-8 -*-
a = int(raw_input('Podaj liczbe aut :'))
b = int(raw_input("Podaj liczbe godzin :"))
c = int(raw_input("Podaj riczaułt :"))
d = 2.75 # cena auta
e = 6.08 # cena za godzine
f = a*d
g = b*e
brutto = f + g # suma brutto z aut i godzin
netto = (f +g) * c / 100 # procent odjety
netto1 = brutto - netto
netto2 = " procent "
suma =" wartosc za auta"
suma1 = " wartosc za godziny"
suma2 = " wartosc brutto"
suma3 = " wartosc netto"
kwota = " kwota do wypłaty "
print f , suma
print g , suma1
print
print brutto , suma2
print netto , netto2
print
print netto1 , kwota
print " koniec programu "
Kod: Zaznacz cały
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.3 on Sat Dec 17 18:09:59 2011
import wx
# begin wxGlade: extracode
# end wxGlade
class MyFrame(wx.Frame):
def __init__(self, *args, **kwds):
# begin wxGlade: MyFrame.__init__
kwds["style"] = wx.DEFAULT_FRAME_STYLE
wx.Frame.__init__(self, *args, **kwds)
self.__set_properties()
self.__do_layout()
# end wxGlade
def __set_properties(self):
# begin wxGlade: MyFrame.__set_properties
self.SetTitle("frame_1")
self.SetSize((600, 600))
self.SetBackgroundColour(wx.Colour(0, 0, 0))
# end wxGlade
def __do_layout(self):
# begin wxGlade: MyFrame.__do_layout
self.Layout()
# end wxGlade
# end of class MyFrame
if __name__ == "__main__":
app = wx.PySimpleApp(0)
wx.InitAllImageHandlers()
frame_1 = MyFrame(None, -1, "")
app.SetTopWindow(frame_1)
frame_1.Show()
app.MainLoop()