Mageia Bugzilla – Attachment 9871 Details for
Bug 22103
python, python3 new security issue CVE-2017-1000158
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Basic hello world script for tkinter
helloworld.py (text/plain), 725 bytes, created by
Len Lawrence
on 2017-12-31 23:10:08 CET
(
hide
)
Description:
Basic hello world script for tkinter
Filename:
MIME Type:
Creator:
Len Lawrence
Created:
2017-12-31 23:10:08 CET
Size:
725 bytes
patch
obsolete
>#!/bin/env python >from Tkinter import * > >class Application(Frame): > def say_hi( self ): > print "Good morning QA." > > def createWidgets(self): > self.hi_there = Button( self ) > self.hi_there["text"] = "Hello", > self.hi_there["command"] = self.say_hi > > self.hi_there.pack({"side": "left"}) > > self.QUIT = Button( self ) > self.QUIT["text"] = "quit" > self.QUIT["fg"] = "red" > self.QUIT["command"] = self.quit > > self.QUIT.pack({"side": "left"}) > > def __init__( self, master=None ): > Frame.__init__( self, master ) > self.pack( ) > self.createWidgets( ) > >root = Tk( ) >app = Application( master=root ) >app.mainloop( ) >root.destroy( )
#!/bin/env python from Tkinter import * class Application(Frame): def say_hi( self ): print "Good morning QA." def createWidgets(self): self.hi_there = Button( self ) self.hi_there["text"] = "Hello", self.hi_there["command"] = self.say_hi self.hi_there.pack({"side": "left"}) self.QUIT = Button( self ) self.QUIT["text"] = "quit" self.QUIT["fg"] = "red" self.QUIT["command"] = self.quit self.QUIT.pack({"side": "left"}) def __init__( self, master=None ): Frame.__init__( self, master ) self.pack( ) self.createWidgets( ) root = Tk( ) app = Application( master=root ) app.mainloop( ) root.destroy( )
View Attachment As Raw
Actions:
View
Attachments on
bug 22103
: 9871 |
9872
|
9873