56 Commits
Author SHA1 Message Date
Eero Tamminen 65886363b8 Replace GPLv2+ texts in Python UI code with SPDX license ID
Improves readability a bit.
2025-08-15 18:23:42 +03:00
Eero Tamminen 1abf5e37cf python-ui: fix some PyLint complaints
Most of these are just code cleanup, but there was also
bug in UI corner-case error path.
2025-05-29 01:11:38 +03:00
Thomas Huth 1a48e4dcc0 Update hyperlinks to the new home of Hatari 2025-02-09 10:13:40 +01:00
Eero Tamminen d3e9a3a03a Python UI: Fix uihelpers function comments 2024-01-29 00:42:59 +02:00
Eero Tamminen 2915769daf Update also Hatari UI doc install & run-time paths
Otherwise "make install" fails.

Reported-By: Yves Le Berre
2023-01-11 21:34:29 +02:00
Eero Tamminen 6e3c0d9386 Misc Hatari UI dialog code improvements
* Put successive checkboxes in a table into VBox
* Drop tables column counts to 2 (rest were unused)
* Improve label /tooltip texts and comments
* Drop plurals from class member names
2022-05-31 00:58:12 +03:00
Eero Tamminen fda572120c Add Hatari UI dialog table combo box helper and use it 2022-05-30 02:05:29 +03:00
Eero Tamminen ac00bf2a5e Install Python UI documentation to DOCDIR
Update Python UI code document links accordingly, and add
menu item for Hatari bugs list.
2022-05-24 03:11:41 +03:00
Eero Tamminen 5019116bef Python UI: fix/improve file selector titles
Fix: specify for Gtk.FileChooserButton() that label is to be used as
file selector title.

Allow title to be specified also FselEntry, not just for file
selectors gotten from FselAndEjectFactory.

Use labels in front of options (in settings dialogs) also as their
file selector titles, and have all of them ending with ':' for
consistency.
2021-01-11 01:54:05 +02:00
Eero Tamminen d7598c4905 Use Glib functions in Python UI instead of deprecated GObject ones
"hatariui.py" changes are from Jens Guenther, thanks!

Also update docs accordingly (while python2 may still work, it's
not tested, so don't mention it any more in README).
2020-12-18 23:26:54 +02:00
Eero Tamminen 9c3156a12b Update Python code copyrights 2020-12-15 16:06:19 +02:00
Eero Tamminen c3c179c109 Remove shebang from non-executable scripts
From: https://src.fedoraproject.org/rpms/hatari/blob/master/f/hatari.spec#_62
2020-10-16 00:28:06 +03:00
Eero Tamminen fc43dbb71b Improve doc link warning messages
Hatari UI docs are not in website, so those docs still point to Git.
2019-03-10 22:53:15 +02:00
Thomas Huth 52d9129dde The docs are now mirrored to the website, no need to talk about git URLs 2019-03-10 07:33:47 +01:00
Eero Tamminen 73a2a159a1 Link Hatari's exported docs instead of Git repo
That way links to documentation sections work correctly, as TuxFamily
Git server doesn't serve HTML files with correct content type.
2019-03-03 23:42:51 +02:00
Eero Tamminen 137ed28c87 Support for showing installed Hatari UI docs from Hatari UI
Earlier Hatari UI Help menu had items only for Hatari documentation,
now it has item also for Hatari UI release notes.

As this expects (Unix/Linux) file system standard locations, I changed
paths to simple strings instead of using os.sep, for readability.
2019-02-24 23:04:52 +02:00
Eero Tamminen 66ef70d5b8 Update Python UI documentation / links 2019-02-24 22:32:43 +02:00
Eero Tamminen 0ad895e410 Separate web items from local info in Help menu 2019-02-24 22:02:07 +02:00
Eero Tamminen e7a44c03a1 Python-UI: version/release-notes update
Main changes are Python v3 support and especially
the pygtk2 -> gtk3 change.
2019-01-09 20:57:44 +02:00
Eero Tamminen c464f908a3 Python-UI: support both Python v2 & v3 2019-01-09 23:35:47 +02:00
Eero Tamminen 54864bc03f Python-UI: fix radiobuttons in machine dialog 2019-01-09 22:38:08 +02:00
Eero Tamminen 9b32d5c8ce Fix rest of issues from PyGtk v2 -> Python/Gtk v3 transition
There are some additional changes on top of Gtk v2 -> v3 changes
coming from switching from static PyGtk bindings to GObject
introspected ones.

- Extra data can't anymore be stored to objects.  This caused
  a lot of changes in Table widget handling -> column needed to
  go into helper function parameters
- Alignments are now given as properties to widget constructor
  instead of needing to use a wrapper object
- Focus flags are now also given as properties
- Some other changes widget constructor parameters and whether
  they're optional or not
2018-10-13 19:44:21 +03:00
Eero Tamminen 04fdb01732 Add missing imports + update copyrights 2018-10-13 13:32:14 +03:00
Eero Tamminen 0aec09cd04 Start of PyGtk 2.x -> Gtk 3.x / GObject transition
Raw results from running:
https://gitlab.gnome.org/GNOME/pygobject/raw/master/tools/pygi-convert.sh

(Just string replace)
2018-10-13 13:19:15 +03:00
Eero Tamminen d209e486fd Remove trailing whitespace from Python scripts
hg files | grep '\.py$' | xargs sed -i 's/[[:space:]]*$//'
2018-10-13 11:58:44 +03:00
Eero Tamminen 168b13a5a9 Update Python-UI URL 2017-11-15 21:58:32 +02:00
Eero Tamminen 015a1f3cc9 Hatari UI fix for systems where "python" is v3
GUI parts are python2 only due to PyGtk dependency,
so set that as hashbang as specified in:
	https://www.python.org/dev/peps/pep-0394/
2017-01-04 00:25:44 +02:00
Eero Tamminen b3bfc90b50 rename logo image + update python GUI info
Hatari icon is named hatari.png, so rename Python GUI Hatari logo to
hatari-logo.png.  Update also some other Hatari UI info.
2015-05-13 22:37:54 +03:00
Eero Tamminen fb9ec1a84f add support for many new Hatari options 2014-06-27 00:36:29 +03:00
Eero Tamminen 9aa6fda609 update UI version to v1.1 + docs on recent changes 2012-01-08 22:26:33 +02:00
Eero Tamminen 1ed99f4f62 remove / replace remaining berlios references 2012-01-07 23:15:20 +02:00
Thomas Huth 7e03fae604 Replaced remaining URLs that still pointed to berlios.de 2011-12-22 23:57:25 +01:00
Eero Tamminen b2f96ef84c update python UI copyrights & doc 2011-04-21 00:55:34 +03:00
Eero Tamminen 0f1f9de4c7 hatari UI: partial/preliminary Python v3 support 2011-02-19 20:51:26 +02:00
Eero Tamminen 5db2382274 make class declaration python 2.4 compatible (fix from David Savinkoff) 2010-12-28 21:05:33 +02:00
Eero Tamminen faf8e69037 fix/improve hatari UI button/key press simulation
- update to event name change, use press instead of down&up where appropriate
- special case space key on text insert, it needs scancode
- add button for Enter key simulation
2010-10-09 23:35:03 +03:00
Eero Tamminen b61abcdcc9 refactor HD & floppy file selection code to common class in uihelpers 2010-09-08 23:49:54 +03:00
Eero Tamminen e3b5ce4d01 simplify uihelper win/nix path splitting 2010-09-08 23:13:28 +03:00
Eero Tamminen 5ea71fc942 update Hatari UI copyright & version (now v1.0) 2010-05-09 20:13:08 +03:00
Eero Tamminen fd7df018fd update python UI docs 2010-04-18 22:23:17 +03:00
Eero Tamminen a18a0cbd5f fix for previous Hatari-UI zooming update,
update Hatari UI sources copyright & email info
2010-03-11 22:00:47 +02:00
Eero Tamminen 35d92b6bfd Support for setting CPU level & clock and Falcon DSP type:
- table dialog helper supports multiple columns
- table helper for radio button group items
- use above in machine config dialog
- add CPU level & clock and Falcon DSP support to machine config dialog
  and configuration handler
2009-09-20 14:25:54 +03:00
Eero Tamminen d4d6b601de add Hatari UI help items to Hatari docs and Hatari & Hatari UI www-pages 2009-07-18 15:19:56 +03:00
Eero Tamminen 76a4e69d7b - Implement peripherals dialog
- Check sound output file extension as required by Hatari
- disk -> floppy dialog
- update TODO&Changelog
2008-10-19 22:10:55 +03:00
Eero Tamminen 4df8a384a4 Implement support for paths and update TODO 2008-09-29 23:05:02 +03:00
Eero Tamminen 626633d6da - add support for auto frameskip, statusbar and overlay led
and simplify the display dialog code a bit
- remove support for multiple machine setups now that Hatari config
  loading (after startup) works, this makes the dialog easier to use
- fix memory size setting
- other minor changes
2008-09-28 23:56:05 +03:00
Eero Tamminen 7f135d03a9 - Added recanim, recsound, config load/save and memory snapshot
load/save features.  If config changed in UI, give a temporary
  config file to Hatari whenever it's re-run
- Fullscreen isn't anymore a toggle as user cannot use this
  option if Hatari is fullscreen... Removed fullscreen config
  option handling as it will be changed also directly from Hatari
- To support drag&drop for the UI, it forwards non-option args
  (floppy name) to Hatari from the UI command line
- Disk image and joystick settings to separate dialogs
- Add dummy paths and peripherals settings dialogs
- Check that Hatari supports --control-socket argument
- Make dialog run() methods more consistent
- Python code compatible to Python 2.4 (I'm testing with 2.5
  which accepts '()' for classes not inheriting anything) and
  wrapper scripts to older SH (use exit when outside func body)
2008-07-26 00:18:43 +03:00
Eero Tamminen c6b698d0dd - fix: create_toolbutton utility
- fix: make sound settings into a dialog
- fix: fastforward & fullscreen initial state in actions
- add new hatariui helper script
- enable keyboard shortcuts when Hatari isn't embedded
- make panels into actions and if user gives any on
  command line, add them to menu too
- close by itself on a row is enough as a button,
  no need for toolbar + toolitem
2008-07-06 23:56:17 +03:00
Eero Tamminen 492a5cc308 - move text/click input buttons to separate dialog
- move menu/actions stuff to new hatariui.py file which
  will eventually replace hatari-ui.py
2008-07-03 00:30:59 +03:00
Eero Tamminen e4ae1a0be4 request and process Hatari window size change messages from Hatari 2008-06-24 00:02:13 +03:00