Mageia Bugzilla – Attachment 9872 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
Hello World type script for tkinter with python 3
newbie.py (text/plain), 733 bytes, created by
Len Lawrence
on 2017-12-31 23:15:12 CET
(
hide
)
Description:
Hello World type script for tkinter with python 3
Filename:
MIME Type:
Creator:
Len Lawrence
Created:
2017-12-31 23:15:12 CET
Size:
733 bytes
patch
obsolete
>#!/bin/env python3 >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 python3 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