Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 Port[In progress] #7

Merged
merged 62 commits into from
Aug 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
f04348c
Port-to-Python3,Gtk3.0&GLib
Saumya-Mishra9129 Mar 24, 2020
a25a492
deleted vte and libvte
Saumya-Mishra9129 Mar 24, 2020
9b45dad
fixed typo
Saumya-Mishra9129 May 12, 2020
3d473dd
Fixes toolbar
Saumya-Mishra9129 May 12, 2020
2b918a2
fix Vte errors
Saumya-Mishra9129 May 12, 2020
b5dfb94
fix Gdk.color_parse error
Saumya-Mishra9129 May 12, 2020
7436403
fix minor typo in edit_toolbar
Saumya-Mishra9129 May 12, 2020
f70c69d
Minor formatting
srevinsaju May 13, 2020
f045175
Reorder and optimize imports
srevinsaju May 13, 2020
9080dd2
Add extra line before class definition PEP8
srevinsaju May 13, 2020
65aaa4d
Remove trailing spaces; add newlines wherever necessary
srevinsaju May 13, 2020
51095e4
Use str as arg in configparser
srevinsaju May 13, 2020
3a2a309
Use single quote instead of double to match i18n conventions
srevinsaju May 13, 2020
287dc5e
Convert string config args to parseable set_cursor_blink_mode
srevinsaju May 13, 2020
378c0a0
fix TypeError on set_scrollback; Fixes r/w on config
srevinsaju May 13, 2020
48d57e9
Conditionally set Vte.set_emulation if Vte is of an older commit
srevinsaju May 13, 2020
65e2a44
Conditionally set_visible_bell if Vte.Terminal is older commit
srevinsaju May 13, 2020
ab52c70
Minor white space fixes
srevinsaju May 14, 2020
1598afe
Rewrite feed_child to match fix line_length
srevinsaju May 14, 2020
0f8d3f5
Port fork_command to spawn_sync
srevinsaju May 14, 2020
a8288e0
update frotz binary file : FROTZ V2.44
Saumya-Mishra9129 May 14, 2020
aa77961
Fix deprecation of spawn_sync. Port spawn_sync -> spawn_async
srevinsaju May 14, 2020
b9dbd51
Add compatibility of spawn_async and spawn_sync
Saumya-Mishra9129 Aug 14, 2020
b04bf16
Optimize Imports
Saumya-Mishra9129 Aug 14, 2020
9c64e37
Remove binary files and use system specific package for frotz
Saumya-Mishra9129 Aug 14, 2020
177490c
Specify dependency for frotz in README
Saumya-Mishra9129 Aug 14, 2020
51e5811
Fix Vte.Terminal
Saumya-Mishra9129 Aug 14, 2020
dc8d27e
Fix Typo in b3bc77d
Saumya-Mishra9129 Aug 14, 2020
604d33c
Update README.md
Saumya-Mishra9129 Aug 15, 2020
e4570f0
Remove host_version
Saumya-Mishra9129 Aug 15, 2020
b62d520
Change shebang to Python3
Saumya-Mishra9129 Aug 15, 2020
ae18fe4
Add kwargs
Saumya-Mishra9129 Aug 15, 2020
06d367f
Revert : Change Uncommented to commented line
Saumya-Mishra9129 Aug 15, 2020
c185449
Modify message dialog to install frotz
Saumya-Mishra9129 Aug 15, 2020
a48d767
Modify command to start the game
Saumya-Mishra9129 Aug 16, 2020
69f1781
Change temp file permission to 0o644
Saumya-Mishra9129 Aug 16, 2020
4daa121
Use str as argument in ConfigParser
Saumya-Mishra9129 Aug 18, 2020
c7e7f98
Update README.md
Saumya-Mishra9129 Aug 18, 2020
2e16fe6
Modify Quit method
Saumya-Mishra9129 Aug 18, 2020
480c207
Fix Indentation
Saumya-Mishra9129 Aug 18, 2020
3abf076
Add seperator before stop button
Saumya-Mishra9129 Aug 18, 2020
c7558d0
Remove empty line caused in https://github.com/sugarlabs/Frotz/pull/7…
Saumya-Mishra9129 Aug 19, 2020
e11ac4d
Add font size configured by sugar
Saumya-Mishra9129 Aug 19, 2020
dc39eab
Use sugar.graphics.alert class to create an alert
Saumya-Mishra9129 Aug 19, 2020
0e40120
Add requirement of sudo privilege while installing frotz
Saumya-Mishra9129 Aug 19, 2020
53e128d
Review - README.md introduction
quozl Aug 20, 2020
e0cec13
Review - README.md dependencies
quozl Aug 20, 2020
ce135f3
Review - README.md wrap
quozl Aug 20, 2020
bda30ee
Review - README.md add games
quozl Aug 20, 2020
2b4038e
Review - reapply license
quozl Aug 20, 2020
3de9fb3
Review - restore spacing
quozl Aug 20, 2020
d64efbb
Review - activity button is to be first
quozl Aug 20, 2020
52f914c
Add alert to start a game after installation of frotz
Saumya-Mishra9129 Aug 20, 2020
ca59b68
Fix: Click on button(Get more games) to launch Browse
Saumya-Mishra9129 Aug 21, 2020
65c66e6
Use PATH variable to find where frotz binary exists
Saumya-Mishra9129 Aug 21, 2020
def2b6c
Review - superfluous import
quozl Aug 22, 2020
afcb33f
Review - encoding a constant
quozl Aug 22, 2020
5807860
Review - Frotz is not a module
quozl Aug 22, 2020
5b48bf4
Review - use shutil.which
quozl Aug 22, 2020
3774f0a
Review - move common start code
quozl Aug 22, 2020
67111f8
Review - point to repository for downloading games
quozl Aug 22, 2020
3a9baf7
Review - opening URL
quozl Aug 22, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions README

This file was deleted.

85 changes: 85 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
What is this?
=============

Frotz activity is a wrapper for the classic interactive fiction
interpreter Frotz.

Frotz activity is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or any
later version.

Frotz interprets Z-code story-files, which are usually text adventure
games (although a few arcade-style Z-code games have been written).

Examples of such story files include the adventure games published by
Infocom, as well as any games produced by compilers to this format, such
as Inform.

Frotz is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License version 2 or any later
version. You can obtain the source from:
https://davidgriffith.gitlab.io/frotz/

Frotz activity is not part of the Sugar desktop, but can be added.
Please refer to;

* [How to Get Sugar on sugarlabs.org](https://sugarlabs.org/),
* [How to use Sugar](https://help.sugarlabs.org/),

Frotz activity depends on Python, [Sugar
Toolkit](https://github.com/sugarlabs/sugar-toolkit-gtk3), GTK+ 3,
Pango, Vte and Frotz.

Included Game
=============

Frotz activity includes one game, the classic Adventure.

Downloading Games
=================

Download files with a .z# extension, then open them from the Journal. Frotz activity will start.

Some games for younger kids:
* [Mother
Loose.z5](https://mirror.ifarchive.org/if-archive/games/zcode/loose.z5)
an interactive nursery rhyme by Irene Callaci.
* [Through the Looking
Glass.z5](https://mirror.ifarchive.org/if-archive/games/zcode/alice3.z5)
] - An adaptation of Alice in Wonderland by Gareth Rees.
* [The Underoos that Ate New
York.z5](https://mirror.ifarchive.org/if-archive/games/zcode/under.z5) -
A silly interactive story by G. Kevin Wilson.
* [Winter
Wonderland.z5](https://mirror.ifarchive.org/if-archive/games/zcode/winter.z5) -
A wintertime story by Laura A. Knauth.

Some games with more mature themes:
* [Phototopia.z5
(English)](https://mirror.ifarchive.org/if-archive/games/zcode/photopia.z5),
[Fotopia.z5
(Spanish)](https://mirror.ifarchive.org/if-archive/games/zcode/spanish/fotopia.z5),
* [All
Roads.z5](https://mirror.ifarchive.org/if-archive/games/zcode/AllRoads.z5),
* [Blue
Chairs.z5](https://mirror.ifarchive.org/if-archive/games/zcode/bluechairs.z5)
* [Anchorhead.z8](https://mirror.ifarchive.org/if-archive/games/zcode/anchor.z8)
* [Christminster.z5](https://mirror.ifarchive.org/if-archive/games/zcode/minster)

How to install dependencies?
============================

Frotz activity will try to install Frotz if it is not yet installed.
Or you can install by hand;

* Update the package index,
- On Ubuntu/Debian systems, run
```sudo apt update```
- On Fedora systems, run
```sudo dnf update```
* Install `frotz`,
- On Ubuntu/Debian systems, run
```sudo apt install frotz```
- On Fedora systems, run
```sudo dnf install frotz```
3 changes: 1 addition & 2 deletions activity/activity.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
name = Frotz
activity_version = 3
bundle_id = vu.lux.olpc.Frotz
exec = sugar-activity frotz.FrotzActivity
exec = sugar-activity3 frotz.FrotzActivity
icon = activity-frotz
mime_types = application/x-zmachine
license = GPLv3+
host_version = 1
Binary file removed bin/frotz
Binary file not shown.
Binary file removed bin/frotz32
Binary file not shown.
Binary file removed bin/frotz64
Binary file not shown.
Loading