Skip to content

Commit 64b247c

Browse files
committed
Some updates
* Add "Simple Window" example * Update most of README.md files Signed-off-by: Ercan Ersoy <ercanersoy@ercanersoy.net>
1 parent 700a53f commit 64b247c

File tree

10 files changed

+31
-8
lines changed

10 files changed

+31
-8
lines changed

circle-calculator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
A circle calculator program
44

5-
This example gets radius of an circle and calculate and display its circumference and area.
5+
This example gets radius of an circle and calculate and display its circumference and area.

hello-world/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Hello World
22

3-
A "Hello, World!" example program
3+
A "Hello, World!" example program
4+
5+
This example shows "Hello, World!" string.

number-guess-game/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
A number guess game program
44

5-
This example gets guess number and generate a random decimal number from 0 to 100. If player guesses the number, the player wins. Otherwise the player loses.
5+
This example gets guess number and generate a random decimal number from 0 to 100. If player guesses the number, the player wins. Otherwise the player loses.

random-number-generator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
A random number generator program
44

5-
This example generates desired random number of desired range.
5+
This example generates desired random number of desired range.

rock-paper-scissors/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Rock, paper, Scissors
22

3-
A rock, paper, scissors game program
3+
A rock, paper, scissors game program

simple-calculator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
A simple caclulator program
44

5-
This example can calcualte two numbers with addition, substraction, multiplication and division operations.
5+
This example can calcualte two numbers with addition, substraction, multiplication and division operations.

simple-server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
A simple server program
44

5-
This example is giving information.
5+
This example is giving information.

simple-window/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Simple Window
2+
3+
A simple window program
4+
5+
This example shows a example window.

simple-window/message-box.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import PySimpleGUI as sg
2+
3+
sg.theme("SystemDefaultForReal")
4+
5+
layout = [[sg.Text("Example Message")]]
6+
7+
window = sg.Window("Message Box", layout, element_justification="c",
8+
size=(300, 100), finalize=True)
9+
10+
while True:
11+
event, values = window.read()
12+
13+
if event == sg.WIN_CLOSED:
14+
break
15+
16+
window.close()

user-input/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
An simple user input program
44

5-
This example does not used a variable.
5+
This example does not used a variable.

0 commit comments

Comments
 (0)