<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>TEAM MAGGI by ZIHNIYO</title>
      <link>https://padlet.com/ikardizihni/u650d8rzmjuj</link>
      <description>MAGGI FOR LIFE</description>
      <language>en-us</language>
      <pubDate>2017-12-18 13:02:08 UTC</pubDate>
      <lastBuildDate>2023-04-08 10:27:17 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet-assets.s3.amazonaws.com/icons/Ninja.png</url>
      </image>
      <item>
         <title></title>
         <author>ikardizihni</author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/216928499</link>
         <description><![CDATA[<div>from tkinter import*<br>from tkinter.ttk import*<br>window = Tk()<br><br>def hello():<br>&nbsp; &nbsp; strLblOutput.set("Assalamualaikum")<br>&nbsp; &nbsp; #strLblOutput.configure(font=("Comic Sans",&nbsp; 16), foreground="blue")<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp;<br>def hello2():<br>&nbsp; &nbsp; strLblOutput.set("Waalaikumussalam")<br>&nbsp; &nbsp;#strLblOutput.configure(font=("Comic Sans",&nbsp; 16), foreground="blue")<br>&nbsp; &nbsp;&nbsp;<br>strLblOutput = StringVar()<br>lblOutput=Label(window, textvariable=strLblOutput, anchor="center", relief="sunken")#relief can be = raised, flat , ridge, groove, solid<br>lblOutput.place(x=30 , y=20, width=340, height =300) #lokasi strLblOutput<br>lblOutput.configure(font=("Comic Sans MS",&nbsp; 16), foreground="Black")<br><br>btnPapar = Button(window, text="Beri Salam", command = hello)#command = arahan<br>btnPapar.place(x=60, y=350, width=80,height=40)<br><br>btnPapar = Button(window, text="Jawab Salam", command = hello2)#command = arahan<br>btnPapar.place(x=160, y=350, width=80,height=40)<br><br>btnPapar = Button(window, text="Keluar", command =sys.exit)#command = arahan<br>btnPapar.place(x=260, y=350, width=80,height=40)</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-12-18 13:09:34 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/216928499</guid>
      </item>
      <item>
         <title></title>
         <author>ikardizihni</author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/216929005</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2017-12-18 13:11:17 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/216929005</guid>
      </item>
      <item>
         <title></title>
         <author>Joyah</author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/216929528</link>
         <description><![CDATA[<div>from tkinter import*<br>from tkinter.ttk import*<br>window = Tk()<br><br>ans = ""<br>noSoalan = -1<br>Mark = 0<br><br>senarai_soalan = ["Di manakah terletaknya Kota Raja Mahadi?\nA.Selangor\nB.Melaka\nC.Pahang",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Pulau apakah yang paling besar di Malaysia?\nA.Pulau Tioman, Pahang\nB. Pulau Banggi, Sabah\nC. Pulau Langkawi, Kedah",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Negeri manakah yang paling besar di Malaysia?\nA. Pahang\nB. Sarawak\nC. Johor",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Apakah kaum yang terkecil di Malaysia?\nA. Kadazandusun\nB. Iban\nC. Ceti",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Siapakah pencipta Jalur Gemilang?\nA. Mohamed Hamzah\nB. Muhammad Arif Fakhruddin\nC. Ishak bin Haji Muhammad",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Siapakah Chief Operator Officer(COO) syarikat yang mencipta Facebook?\nA. Mark Zuckerberg\nB. David Wehner\nC. Sheryl Sandberg",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Bilakah Tunku Abdul Rahman dilahirkan?\nA. 1902\nB. 1903\nC. 1904",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Siapakah arkitek pembinaan Menara Berkembar Petronas?\nA. César Pelli\nB. Fernandez Garcia\nC. Diego Sanchez",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Apakah kereta pertama yang diciptakan di Malaysia?\nA. Proton Wira\nB. Proton Satria\nC. Proton Saga",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Bilakah Malaysia ditubuhkan?\nA. 1957\nB. 1963\nC. 1964",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Negara apakah yang menawan Malaysia ketika Perang Dunia II?\nA. Portugis\nB. Jepun\nC. British",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Siapakah pengasas Microsoft?\nA. Bill Gates\nB. Steve Ballmer\nC. Steve Jobs",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Apakah negara yang paling terkecil di dunia?\nA. Timor Leste\nB. Vatican City\nC. Liechtenstein",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Apakah negara yang paling kaya di dunia?\nA. Qatar\nB. Singapore\nC. Luxembourg",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Siapakah Adolf Hitler?\nA. Pengeluar kasut berjenama\nB.Ketua Nazi\nC. Penjual 'Hotdog' terlaris di Jerman"]<br>senarai_jawapan = ["a", "b", "b", "c", "a", "c", "b", "a", "c", "b", "b", "a", "b", "c", "b"]<br>senarai_jawapanCaps = ["A", "B", "B", "C", "A", "C", "B", "A", "C", "B", "B", "A", "B", "C", "B"]<br><br>def papar_soalan():<br>&nbsp; &nbsp; global noSoalan, Mark #<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; noSoalan = noSoalan + 1<br>&nbsp; &nbsp; if noSoalan == 15:<br>&nbsp; &nbsp; &nbsp; &nbsp; noSoalan = 0<br>&nbsp; &nbsp; &nbsp; &nbsp; Mark = 0<br>&nbsp; &nbsp; &nbsp; &nbsp; strLblMark.set("")<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; strLblMesej.set("")<br>&nbsp; &nbsp; strTxtJawab.set("")<br>&nbsp; &nbsp; txtJawab.focus()<br>&nbsp; &nbsp; strLblnoSoalan.set("Soalan" + str(noSoalan + 1))<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; strLblSoalan.set(senarai_soalan[noSoalan])<br>&nbsp; &nbsp; txtJawab.place(x=400, y=200, width= 100, height=20)<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; btnSemak.config(state=NORMAL)<br>&nbsp; &nbsp; btnSoalan.config(state=DISABLED)<br>&nbsp; &nbsp;&nbsp;<br>def semak_jawapan():<br>&nbsp; &nbsp; global Mark<br>&nbsp; &nbsp; jawapan_pengguna = strTxtJawab.get()<br>&nbsp; &nbsp; if senarai_jawapan[noSoalan] == jawapan_pengguna or senarai_jawapanCaps[noSoalan] == jawapan_pengguna :<br>&nbsp; &nbsp; &nbsp; &nbsp; strLblMesej.set("Tahniah, Jawapan Anda Tepat")<br>&nbsp; &nbsp; &nbsp; &nbsp; Mark = Mark + 2<br>&nbsp; &nbsp; else :<br>&nbsp; &nbsp; &nbsp; &nbsp; strLblMesej.set("Sila Cuba Lagi")<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; strLblMark.set("Mark : " + str(Mark) + "/30")<br>&nbsp; &nbsp; btnSemak.config(state=DISABLED)<br>&nbsp; &nbsp; btnSoalan.config(state=NORMAL)<br>&nbsp; &nbsp;&nbsp;<br>strLblMesej = StringVar()<br>lblMesej = Label(window, textvariable = strLblMesej)<br>lblMesej.config(font = ("Comic Sans MS", 16),foreground="black")<br>lblMesej.place(x = 50, y = 190)<br><br>strLblMark = StringVar()<br>lblMark = Label(window, textvariable = strLblMark)<br>lblMark.config(font = ("Comic Sans MS", 16), foreground = "orange")<br>lblMark.place(x = 350, y = 20)<br><br>strLblnoSoalan = StringVar()<br>lblnoSoalan = Label(window, textvariable = strLblnoSoalan)<br>lblnoSoalan.config(font = ("Franklin Gothic Medium Cond", 16), foreground = "magenta")<br>lblnoSoalan.place(x = 50, y = 20)<br><br>strLblSoalan = StringVar()<br>lblSoalan = Label(window, textvariable = strLblSoalan)<br>lblSoalan.config(font = ("Arial", 16), foreground = "blue")<br>lblSoalan.place(x = 50, y = 50)<br><br>strTxtJawab = StringVar()<br>txtJawab = Entry(window, textvariable = strTxtJawab)<br><br>btnSoalan = Button(window, text="Soalan Seterusnya", command = papar_soalan )<br>btnSoalan.config(state=NORMAL)<br>btnSemak = Button(window, text="Semak", command = semak_jawapan)<br>btnSemak.config(state=DISABLED)<br>btnKeluar = Button(window, text="Keluar", command = quit)<br><br>btnSoalan.place(x=50, y=230, width=130, height=40)<br>btnSemak.place(x=240, y=230, width=90, height=40)<br>btnKeluar.place(x=400, y=230, width=90, height=40)<br><br>window.title("Kuiz Pengetahuan Am")<br>window.geometry('540x300')<br><br>window.mainloop()<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-12-18 13:13:19 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/216929528</guid>
      </item>
      <item>
         <title></title>
         <author>ikardizihni</author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217144429</link>
         <description><![CDATA[<pre>import Tkinter as tk

counter = 0 
def counter_label(label):
  counter = 0
  def count():
    global counter
    counter += 1
    label.config(text=str(counter))
    label.after(1000, count)
  count()
 
 
root = tk.Tk()
root.title("Counting Seconds")
label = tk.Label(root, fg="dark green")
label.pack()
counter_label(label)
button = tk.Button(root, text='Stop', width=25, command=root.destroy)
button.pack()
root.mainloop()</pre><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-12-19 05:55:55 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217144429</guid>
      </item>
      <item>
         <title></title>
         <author>ikardizihni</author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217144437</link>
         <description><![CDATA[<div>import tkinter as tk<br>&nbsp; &nbsp;&nbsp;<br><br>def write_slogan():<br>&nbsp; &nbsp; print("Tkinter is easy to use!")<br><br>root = tk.Tk()<br>frame = tk.Frame(root)<br>frame.pack()<br><br>button = tk.Button(frame,&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;text="QUIT",&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fg="red",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;command=quit)<br>button.pack(side=tk.LEFT)<br>slogan = tk.Button(frame,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;text="Hello",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;command=write_slogan)<br>slogan.pack(side=tk.LEFT)<br><br>root.mainloop()<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-12-19 05:56:17 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217144437</guid>
      </item>
      <item>
         <title></title>
         <author>ikardizihni</author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217144630</link>
         <description><![CDATA[<div>Version:1.0 StartHTML:000000243 EndHTML:000026950 StartFragment:000010277 EndFragment:000026838 StartSelection:000010277 EndSelection:000026838 SourceURL:https://stackoverflow.com/questions/7546050/switch-between-two-frames-in-tkinter python - Switch between two frames in tkinter - Stack Overflow&nbsp; &nbsp; &nbsp; &amp;lt;style&amp;gt;body,.top-bar{margin-top:1.9em}&amp;lt;/style&amp;gt; &nbsp;</div><div>import tkinter as tk&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # python 3<br>from tkinter import font&nbsp; as tkfont # python 3<br>#import Tkinter as tk&nbsp; &nbsp; &nbsp;# python 2<br>#import tkFont as tkfont&nbsp; # python 2<br><br>class SampleApp(tk.Tk):<br><br>&nbsp; &nbsp; def __init__(self, *args, **kwargs):<br>&nbsp; &nbsp; &nbsp; &nbsp; tk.Tk.__init__(self, *args, **kwargs)<br><br>&nbsp; &nbsp; &nbsp; &nbsp; self.title_font = tkfont.Font(family='Helvetica', size=18, weight="bold", slant="italic")<br><br>&nbsp; &nbsp; &nbsp; &nbsp; # the container is where we'll stack a bunch of frames<br>&nbsp; &nbsp; &nbsp; &nbsp; # on top of each other, then the one we want visible<br>&nbsp; &nbsp; &nbsp; &nbsp; # will be raised above the others<br>&nbsp; &nbsp; &nbsp; &nbsp; container = tk.Frame(self)<br>&nbsp; &nbsp; &nbsp; &nbsp; container.pack(side="top", fill="both", expand=True)<br>&nbsp; &nbsp; &nbsp; &nbsp; container.grid_rowconfigure(0, weight=1)<br>&nbsp; &nbsp; &nbsp; &nbsp; container.grid_columnconfigure(0, weight=1)<br><br>&nbsp; &nbsp; &nbsp; &nbsp; self.frames = {}<br>&nbsp; &nbsp; &nbsp; &nbsp; for F in (StartPage, PageOne, PageTwo):<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; page_name = F.__name__<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frame = F(parent=container, controller=self)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.frames[page_name] = frame<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # put all of the pages in the same location;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # the one on the top of the stacking order<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # will be the one that is visible.<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frame.grid(row=0, column=0, sticky="nsew")<br><br>&nbsp; &nbsp; &nbsp; &nbsp; self.show_frame("StartPage")<br><br>&nbsp; &nbsp; def show_frame(self, page_name):<br>&nbsp; &nbsp; &nbsp; &nbsp; '''Show a frame for the given page name'''<br>&nbsp; &nbsp; &nbsp; &nbsp; frame = self.frames[page_name]<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.tkraise()<br><br><br>class StartPage(tk.Frame):<br><br>&nbsp; &nbsp; def __init__(self, parent, controller):<br>&nbsp; &nbsp; &nbsp; &nbsp; tk.Frame.__init__(self, parent)<br>&nbsp; &nbsp; &nbsp; &nbsp; self.controller = controller<br>&nbsp; &nbsp; &nbsp; &nbsp; label = tk.Label(self, text="This is the start page", font=controller.title_font)<br>&nbsp; &nbsp; &nbsp; &nbsp; label.pack(side="top", fill="x", pady=10)<br><br>&nbsp; &nbsp; &nbsp; &nbsp; button1 = tk.Button(self, text="Go to Page One",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; command=lambda: controller.show_frame("PageOne"))<br>&nbsp; &nbsp; &nbsp; &nbsp; button2 = tk.Button(self, text="Go to Page Two",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; command=lambda: controller.show_frame("PageTwo"))<br>&nbsp; &nbsp; &nbsp; &nbsp; button1.pack()<br>&nbsp; &nbsp; &nbsp; &nbsp; button2.pack()<br><br><br>class PageOne(tk.Frame):<br><br>&nbsp; &nbsp; def __init__(self, parent, controller):<br>&nbsp; &nbsp; &nbsp; &nbsp; tk.Frame.__init__(self, parent)<br>&nbsp; &nbsp; &nbsp; &nbsp; self.controller = controller<br>&nbsp; &nbsp; &nbsp; &nbsp; label = tk.Label(self, text="This is page 1", font=controller.title_font)<br>&nbsp; &nbsp; &nbsp; &nbsp; label.pack(side="top", fill="x", pady=10)<br>&nbsp; &nbsp; &nbsp; &nbsp; button = tk.Button(self, text="Go to the start page",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;command=lambda: controller.show_frame("StartPage"))<br>&nbsp; &nbsp; &nbsp; &nbsp; button.pack()<br><br><br>class PageTwo(tk.Frame):<br><br>&nbsp; &nbsp; def __init__(self, parent, controller):<br>&nbsp; &nbsp; &nbsp; &nbsp; tk.Frame.__init__(self, parent)<br>&nbsp; &nbsp; &nbsp; &nbsp; self.controller = controller<br>&nbsp; &nbsp; &nbsp; &nbsp; label = tk.Label(self, text="This is page 2", font=controller.title_font)<br>&nbsp; &nbsp; &nbsp; &nbsp; label.pack(side="top", fill="x", pady=10)<br>&nbsp; &nbsp; &nbsp; &nbsp; button = tk.Button(self, text="Go to the start page",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;command=lambda: controller.show_frame("StartPage"))<br>&nbsp; &nbsp; &nbsp; &nbsp; button.pack()<br><br><br>if __name__ == "__main__":<br>&nbsp; &nbsp; app = SampleApp()<br>&nbsp; &nbsp; app.mainloop()</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-12-19 06:00:21 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217144630</guid>
      </item>
      <item>
         <title></title>
         <author>ikardizihni</author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217144660</link>
         <description><![CDATA[<div>import tkinter as tk&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # python 3<br>from tkinter import font&nbsp; as tkfont # python 3<br>#import Tkinter as tk&nbsp; &nbsp; &nbsp;# python 2<br>#import tkFont as tkfont&nbsp; # python 2<br><br>class SampleApp(tk.Tk):<br><br>&nbsp; &nbsp; def __init__(self, *args, **kwargs):<br>&nbsp; &nbsp; &nbsp; &nbsp; tk.Tk.__init__(self, *args, **kwargs)<br><br>&nbsp; &nbsp; &nbsp; &nbsp; self.title_font = tkfont.Font(family='Helvetica', size=18, weight="bold", slant="italic")<br><br>&nbsp; &nbsp; &nbsp; &nbsp; # the container is where we'll stack a bunch of frames<br>&nbsp; &nbsp; &nbsp; &nbsp; # on top of each other, then the one we want visible<br>&nbsp; &nbsp; &nbsp; &nbsp; # will be raised above the others<br>&nbsp; &nbsp; &nbsp; &nbsp; container = tk.Frame(self)<br>&nbsp; &nbsp; &nbsp; &nbsp; container.pack(side="top", fill="both", expand=True)<br>&nbsp; &nbsp; &nbsp; &nbsp; container.grid_rowconfigure(0, weight=1)<br>&nbsp; &nbsp; &nbsp; &nbsp; container.grid_columnconfigure(0, weight=1)<br><br>&nbsp; &nbsp; &nbsp; &nbsp; self.frames = {}<br>&nbsp; &nbsp; &nbsp; &nbsp; for F in (StartPage, PageOne, PageTwo):<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; page_name = F.__name__<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frame = F(parent=container, controller=self)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.frames[page_name] = frame<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # put all of the pages in the same location;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # the one on the top of the stacking order<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # will be the one that is visible.<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frame.grid(row=0, column=0, sticky="nsew")<br><br>&nbsp; &nbsp; &nbsp; &nbsp; self.show_frame("StartPage")<br><br>&nbsp; &nbsp; def show_frame(self, page_name):<br>&nbsp; &nbsp; &nbsp; &nbsp; '''Show a frame for the given page name'''<br>&nbsp; &nbsp; &nbsp; &nbsp; frame = self.frames[page_name]<br>&nbsp; &nbsp; &nbsp; &nbsp; frame.tkraise()<br><br><br>class StartPage(tk.Frame):<br><br>&nbsp; &nbsp; def __init__(self, parent, controller):<br>&nbsp; &nbsp; &nbsp; &nbsp; tk.Frame.__init__(self, parent)<br>&nbsp; &nbsp; &nbsp; &nbsp; self.controller = controller<br>&nbsp; &nbsp; &nbsp; &nbsp; label = tk.Label(self, text="This is the start page", font=controller.title_font)<br>&nbsp; &nbsp; &nbsp; &nbsp; label.pack(side="top", fill="x", pady=10)<br><br>&nbsp; &nbsp; &nbsp; &nbsp; button1 = tk.Button(self, text="Go to Page One",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; command=lambda: controller.show_frame("PageOne"))<br>&nbsp; &nbsp; &nbsp; &nbsp; button2 = tk.Button(self, text="Go to Page Two",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; command=lambda: controller.show_frame("PageTwo"))<br>&nbsp; &nbsp; &nbsp; &nbsp; button1.pack()<br>&nbsp; &nbsp; &nbsp; &nbsp; button2.pack()<br><br><br>class PageOne(tk.Frame):<br><br>&nbsp; &nbsp; def __init__(self, parent, controller):<br>&nbsp; &nbsp; &nbsp; &nbsp; tk.Frame.__init__(self, parent)<br>&nbsp; &nbsp; &nbsp; &nbsp; self.controller = controller<br>&nbsp; &nbsp; &nbsp; &nbsp; label = tk.Label(self, text="This is page 1", font=controller.title_font)<br>&nbsp; &nbsp; &nbsp; &nbsp; label.pack(side="top", fill="x", pady=10)<br>&nbsp; &nbsp; &nbsp; &nbsp; button = tk.Button(self, text="Go to the start page",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;command=lambda: controller.show_frame("StartPage"))<br>&nbsp; &nbsp; &nbsp; &nbsp; button.pack()<br><br><br>class PageTwo(tk.Frame):<br><br>&nbsp; &nbsp; def __init__(self, parent, controller):<br>&nbsp; &nbsp; &nbsp; &nbsp; tk.Frame.__init__(self, parent)<br>&nbsp; &nbsp; &nbsp; &nbsp; self.controller = controller<br>&nbsp; &nbsp; &nbsp; &nbsp; label = tk.Label(self, text="This is page 2", font=controller.title_font)<br>&nbsp; &nbsp; &nbsp; &nbsp; label.pack(side="top", fill="x", pady=10)<br>&nbsp; &nbsp; &nbsp; &nbsp; button = tk.Button(self, text="Go to the start page",<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;command=lambda: controller.show_frame("StartPage"))<br>&nbsp; &nbsp; &nbsp; &nbsp; button.pack()<br><br><br>if __name__ == "__main__":<br>&nbsp; &nbsp; app = SampleApp()<br>&nbsp; &nbsp; app.mainloop()</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-12-19 06:00:55 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217144660</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217151801</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/248311699/2969b978c2c10b6f6fcc23a539905b10/Mencari_isi_padu_kuboid_atau_kubus__1_.pptx" />
         <pubDate>2017-12-19 07:32:11 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217151801</guid>
      </item>
      <item>
         <title>Tambah</title>
         <author></author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217221673</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/248311699/c84b3b1073ff7c7b77de51c5e6e04f78/tambah.py" />
         <pubDate>2017-12-19 13:23:51 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217221673</guid>
      </item>
      <item>
         <title>Tolak</title>
         <author></author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217221856</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/248311699/ecc23e30ba9a3e945a7601c13a7e7424/Tolak.py" />
         <pubDate>2017-12-19 13:24:24 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217221856</guid>
      </item>
      <item>
         <title>darab</title>
         <author></author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217221983</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/248311699/204bbd6510a423aab8b07d0d82e9321e/Darab.py" />
         <pubDate>2017-12-19 13:24:53 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217221983</guid>
      </item>
      <item>
         <title></title>
         <author>ikardizihni</author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217404104</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/244555916/244894cde1cfb0348533134c0ba65173/KUIZ_PENAMBAHAN_.pptx" />
         <pubDate>2017-12-20 02:08:58 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217404104</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217417887</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/248311699/9f9525b6df8ff4a7c6972989e9c9e23e/luas_segi_empat.py" />
         <pubDate>2017-12-20 07:07:38 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217417887</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217423241</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/208009896/75fb87d4885255667ef60259febbbfd4/GROUP_PROJECT_DESCRIPTION.docx" />
         <pubDate>2017-12-20 07:52:19 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217423241</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217622475</link>
         <description><![CDATA[<div>from tkinter import*<br>from tkinter.ttk import*<br><br>window = Tk()<br><br>def kira_berat():<br>&nbsp; &nbsp; berat = int(strTxtBerat.get())<br>&nbsp; &nbsp; tinggi = int(strTxtTinggi.get())<br>&nbsp; &nbsp; BMI = berat * tinggi * tinggi&nbsp;<br>&nbsp; &nbsp; strTxtBMI.set(str(BMI))<br>&nbsp; &nbsp;&nbsp;<br>def kosongkan():<br>&nbsp; &nbsp; strTxtBerat.set ("")<br>&nbsp; &nbsp; strTxtTinggi.set ("")<br>&nbsp; &nbsp; strTxtBMI.set ("")<br>&nbsp; &nbsp;&nbsp;<br>lblBerat = Label (window, text = "Berat")<br>lblBerat .place (x=100, y=40)<br><br>lblBerat&nbsp; = Label (window, text = "Tinggi")<br>lblBerat .place (x=100, y=80)<br><br>lblBerat&nbsp; = Label (window, text = "BMI")<br>lblBerat .place (x=100, y=120)<br><br>strTxtBerat= StringVar()<br>txtBerat = Entry (window, textvariable=strTxtBerat)<br>txtBerat.place (x=200, y=40, width = 50, height = 20)<br><br>strTxtTinggi = StringVar()<br>txtTinggi = Entry (window, textvariable=strTxtTinggi)<br>txtTinggi.place (x=200, y=80, width = 50, height = 20)<br><br>strTxtBMI = StringVar()<br>txtBMI = Entry (window, textvariable=strTxtBMI)<br>txtBMI.place (x=200, y=120, width = 50, height = 20)<br><br>btnKira = Button (window, text = "Kira", command = kira_berat)<br>btnKosongkan =Button (window, text = "Kosongkan", command = kosongkan)<br>btnKeluar = Button (window, text = "Keluar", command = window.destroy)<br><br>btnKira.place (x=30, y=200, width = 90, height = 40)<br>btnKosongkan.place (x=150, y=200, width = 90, height = 40)<br>btnKeluar.place (x=270, y=200, width = 90, height = 40)<br><br>window.title ("Mencari Luas Segi Empat")<br>window.geometry ("400x300")</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-12-21 02:11:30 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217622475</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217622491</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/208009896/5691a380a4759197954a555275f9ece6/GROUP_PROJECT_DESCRIPTION.docx" />
         <pubDate>2017-12-21 02:12:02 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217622491</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217623606</link>
         <description><![CDATA[<div>from tkinter import*<br>from tkinter import*<br>from tkinter.ttk import*<br>gambar=PhotoImage(file="images.png")<br>window = Tk()<br><br>def kira_perimeter():<br>&nbsp; &nbsp; jejari = int(strTxtjejari.get())<br>&nbsp; &nbsp; luas = int(strTxtluas.get())<br>&nbsp; &nbsp; perimeter = luas*2*3.14&nbsp;<br>&nbsp; &nbsp; strTxtperimeter.set(str(perimeter))<br>&nbsp; &nbsp;&nbsp;<br>def kosongkan():<br>&nbsp; &nbsp; strTxtjejari.set ("")<br>&nbsp; &nbsp; strTxtluas.set ("")<br>&nbsp; &nbsp; strTxtperimeter.set ("")<br>&nbsp; &nbsp;&nbsp;<br>lbljejari = Label (window, text = "Jejari(cm)")<br>lbljejari.place (x=100, y=40)<br><br>lbljejari&nbsp; = Label (window, text = "Luas(cm)")<br>lbljejari.place (x=100, y=80)<br><br>lbljejari&nbsp; = Label (window, text = "Perimeter(cm)")<br>lbljejari.place (x=100, y=120)<br><br>strTxtjejari= StringVar()<br>txtjejari = Entry (window, textvariable=strTxtjejari)<br>txtjejari.place (x=200, y=40, width = 50, height = 20)<br><br>strTxtluas = StringVar()<br>txtluas = Entry (window, textvariable=strTxtluas)<br>txtluas.place (x=200, y=80, width = 50, height = 20)<br><br>strTxtperimeter = StringVar()<br>txtperimeter = Entry (window, textvariable=strTxtperimeter)<br>txtperimeter.place (x=200, y=120, width = 50, height = 20)<br><br>btnKira = Button (window, text = "Kira", command = kira_perimeter)<br>btnKosongkan =Button (window, text = "Kosongkan", command = kosongkan)<br>btnKeluar = Button (window, text = "Keluar", command = window.destroy)<br><br>btnKira.place (x=30, y=200, width = 90, height = 40)<br>btnKosongkan.place (x=150, y=200, width = 90, height = 40)<br>btnKeluar.place (x=270, y=200, width = 90, height = 40)<br><br>window.title ("Mencari Perimeter Bulatan")<br>window.geometry ("400x300")<br>lblgambar1=Label(window)<br>lblgambar.place(x=900, y=180)</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-12-21 02:34:43 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217623606</guid>
      </item>
      <item>
         <title>bulatan</title>
         <author>Imthatawkwardguy</author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217624785</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/prod/162887753/f52f552581887db22c0f76ca5f8f6464/bulatan.py" />
         <pubDate>2017-12-21 02:55:57 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217624785</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217625481</link>
         <description><![CDATA[<div>from tkinter import *<br><br>class App(Tk):<br>&nbsp; &nbsp; def __init__(self):<br>&nbsp; &nbsp; &nbsp; &nbsp; self.root = Tk()<br>&nbsp; &nbsp; &nbsp; &nbsp; self.root.title("BMI Calculator")<br>&nbsp; &nbsp; &nbsp; &nbsp; self.root.geometry('540x300')<br>&nbsp; &nbsp; &nbsp; &nbsp; self.root.configure(background='Indigo')<br>&nbsp; &nbsp; &nbsp; &nbsp; Tk.__init__(self)<br><br><br>&nbsp; &nbsp; &nbsp; &nbsp; # Sets a label and entry field into the window for weight, height in<br>&nbsp; &nbsp; &nbsp; &nbsp; # feet, and height in inches<br>&nbsp; &nbsp; &nbsp; &nbsp; self.label = Label(self.root, text="Enter your weight in kilogrammes.")<br>&nbsp; &nbsp; &nbsp; &nbsp; self.label.config(font = ("Narkisim", 16), relief = ("raised"))<br>&nbsp; &nbsp; &nbsp; &nbsp; self.label.pack()<br>&nbsp; &nbsp; &nbsp; &nbsp; self.kg = StringVar()<br>&nbsp; &nbsp; &nbsp; &nbsp; Entry(self.root, textvariable=self.kg).pack()<br><br>&nbsp; &nbsp; &nbsp; &nbsp; self.label = Label(self.root, text="Enter your height in metres.")<br>&nbsp; &nbsp; &nbsp; &nbsp; self.label.config(font = ("Narkisim", 16), relief = ("raised"))<br>&nbsp; &nbsp; &nbsp; &nbsp; self.label.pack()<br>&nbsp; &nbsp; &nbsp; &nbsp; self.metre = StringVar()<br>&nbsp; &nbsp; &nbsp; &nbsp; Entry(self.root, textvariable=self.metre).pack()<br><br>&nbsp; &nbsp; &nbsp; &nbsp; self.label = Label(self.root, text="Enter your height in centimetres.")<br>&nbsp; &nbsp; &nbsp; &nbsp; self.label.config(font = ("Narkisim", 16), relief = ("raised"))<br>&nbsp; &nbsp; &nbsp; &nbsp; self.label.pack()<br>&nbsp; &nbsp; &nbsp; &nbsp; self.centimetre = StringVar()<br>&nbsp; &nbsp; &nbsp; &nbsp; Entry(self.root, textvariable=self.centimetre).pack()<br><br>&nbsp; &nbsp; &nbsp; &nbsp; # Sets a button and label to click and calculate BMI<br>&nbsp; &nbsp; &nbsp; &nbsp; self.buttontext = StringVar()<br>&nbsp; &nbsp; &nbsp; &nbsp; Button(self.root, textvariable=self.buttontext, command=self.calculate).pack()<br>&nbsp; &nbsp; &nbsp; &nbsp; self.buttontext.set("Calculate")<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; # Sets bmi_num to a StringVar so that when it is changed, the label will<br>&nbsp; &nbsp; &nbsp; &nbsp; # update<br>&nbsp; &nbsp; &nbsp; &nbsp; self.bmi_num = StringVar()<br>&nbsp; &nbsp; &nbsp; &nbsp; Label(self.root, textvariable=self.bmi_num).pack()<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; # Same thing here<br>&nbsp; &nbsp; &nbsp; &nbsp; self.bmi_text = StringVar()<br>&nbsp; &nbsp; &nbsp; &nbsp; Label(self.root, textvariable=self.bmi_text).pack()<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; self.root.mainloop()<br><br>&nbsp; &nbsp; def calculate(self):<br>&nbsp; &nbsp; &nbsp; &nbsp; # Retrieves all necessary information to calculate BMI<br>&nbsp; &nbsp; &nbsp; &nbsp; weight = float(self.kg.get())<br>&nbsp; &nbsp; &nbsp; &nbsp; metre = float(self.metre.get())<br>&nbsp; &nbsp; &nbsp; &nbsp; centimetre = float(self.centimetre.get())<br>&nbsp; &nbsp; &nbsp; &nbsp; height = (metre*100)+centimetre<br>&nbsp; &nbsp; &nbsp; &nbsp; bmi = float((weight*10000)/(height**2))<br>&nbsp; &nbsp; &nbsp; &nbsp; # Updates the status label<br>&nbsp; &nbsp; &nbsp; &nbsp; self.bmi_num.set("Your BMI is %.2f" % bmi)<br>&nbsp; &nbsp; &nbsp; &nbsp; if bmi &lt; 18.5:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.bmi_text.set("You are underweight")<br>&nbsp; &nbsp; &nbsp; &nbsp; if 18.5 &lt;= bmi &lt; 25:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.bmi_text.set("You are normal")<br>&nbsp; &nbsp; &nbsp; &nbsp; if 25 &lt;= bmi &lt; 30:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.bmi_text.set("You are overweight")<br>&nbsp; &nbsp; &nbsp; &nbsp; if 30&lt;= bmi &gt; 30:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.bmi_text.set("You are obese")<br><br>App()</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-12-21 03:11:53 UTC</pubDate>
         <guid>https://padlet.com/ikardizihni/u650d8rzmjuj/wish/217625481</guid>
      </item>
   </channel>
</rss>
