Home About General Examples EasyGen

SimpleServer.py -

This is the Simplest Server, where you can type in any command, and watch it appear on the Client's screen.

1
2
3
4
5
6
7
import config
from EasyGUI import *
Open(4000)
while True:
   Mess = input('Send:     ')
   Put(Mess)
   print(Get())

Garage.py

This Server demonstrates the power of EasyGUI. It contains only two Image widgets (Garage & Door) and a Button

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import time
from EasyGUI import *
import config
def GoUp():
 for n in range(400,0,-10):
     time.sleep(.1)
     Send('11=door~Height=' + str(n))
 Send('01=up~Text=DOWN')
def GoDown():
 for n in range(0,480, +10):
     time.sleep(.1)
     Send('11=door~Height=' + str(n))
 Send('01=up~Text=UP')
Open(4000)
Send('51=Load~Text=Garage.dat')
time.sleep(.5)
while True:
 Wait()
 GoUp()
 Wait()
 GoDown()
gitt - Visit EasyGUI's repo for more samples