Shared
Applications |
Shared
Applications Programmes Manual
API reference can be found here
in the AccessGrid.AccessGrid.SharedAppClient. You can also access the
SharedApplication SOAP interface directly, then refer to AccessGrid.AccessGrid.SharedApplicationIW.
|
Exercise
1 - Installation |
- Download SharedStopLight.py and SharedStopLight.app.
- Create an AG package, SharedStopLight.agpkg (zip file with .agpkg
extension) containing the two files.
- Start a server on your local machine (see Configuration Exercise 4)
and connect to it with the Venue Client (https://localhost:8000/Venues/default).
- Use the Venue Client to upload the AG package to the venue
In the Venue Client:
- Right click the Data heading -> Add...
- Browse to the package -> Ok
- The package should show up under the Data heading
- Double click the package in the Data section to install Shared
Stoplight
- Start a Shared Stoplight session
In the Venue Client
- Right click the Application Sessions heading
- Select Shared Stoplight
- Join the session and test it with someone, or open two clients on
your local machine
In the Venue Client
- Right click the Shared Stoplight session -> Open.
|
Exercise
2 - Adding a Button |
- Open the SharedStopLight.py in an editor.
- Make sure your local venue server is still running.
- Try starting the SharedStopLight.py in a command window
SharedStopLight.py --test
With the test flag set, we automatically create a session in the venue
and do not have to manually start one in the Venue Client.
- Remove comments for line 122 and 130. This will add UI components
for a "Yellow" button. Extend the code so the new yellow button
works.
- Test the application from the command line
SharedStopLight.py --test
- When finished, install the modified stoplight application, as in Exersice
1, and test it with someone. Or open two clients on your local machine.
|
Exercise
3 - Adding a Shared Title |
- Remove comments from line 124 and 134. This will add a new text control
for input under the buttons.
- Run
SharedStopLight.py --test
Note the additional UI pieces.
- Modify the code to set the title for all participants
when you hit enter in the new text control. The title should be the
same as the text entered in the text control.
UI Hints:
- Use EVT_TEXT_ENTER to register a callback for wxTextCtrl enter events.
- event.GetString() gives you the string value from a text control enter
event.
- self.parent.SetTitle(string) sets the title of the frame from inside
the panel.
- Test the application from the command line
SharedStopLight.py --test
- When finished, install the modified stoplight application, as in Exersice
1, and test it with someone. Or open two clients on your local machine.
Solution: SharedStopLight_Solution.py
|
Exercise 4 - Creating a Group
Chat |
- The purpose of the exercise is to create shared application package
for a simple group chat. The user interface has been prepared for you
in following file:
GroupChat.py
For more UI details, see the wxPython
online documentation.
Solution: GroupChat_Solution.py
|