New Hello World Demos
This commit is contained in:
		
							parent
							
								
									11ad67b6b2
								
							
						
					
					
						commit
						c3c25bfd83
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		
							
								
								
									
										15
									
								
								DemoPrograms/Demo_Hello_World.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								DemoPrograms/Demo_Hello_World.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | ||||||
|  | import PySimpleGUI as sg | ||||||
|  | 
 | ||||||
|  | """ | ||||||
|  |     Oh yes, the classic "Hello World".  The problem is that you | ||||||
|  |     can do it so many ways using PySimpleGUI | ||||||
|  | """ | ||||||
|  | 
 | ||||||
|  | sg.PopupNoButtons('Hello World')         # the single line | ||||||
|  | 
 | ||||||
|  | sg.Window('Hello world', [[sg.Text('Hello World')]]).Read()    # single line using a real window | ||||||
|  | 
 | ||||||
|  | # This is a "Traditional" PySimpleGUI window code. First make a layout, then a window, the read it | ||||||
|  | layout = [[sg.Text('Hello World')]] | ||||||
|  | window = sg.Window('Hello world', layout) | ||||||
|  | event, values = window.Read() | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue