104 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 d5a6a26932 python-ui: update docs + web links 2025-05-29 01:11:38 +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
Eero Tamminen c13ced4795 Fix Python UI data cache setting mismatch 2025-05-20 01:56:42 +03:00
Eero Tamminen 36ef27dec0 Support CPU cache option also in Python tools 2024-04-23 20:03:36 +03:00
Eero Tamminen e1364f720c Python UI: drop Hatari <2.4 (oldUAE) support
Also improve TT-RAM / 24-bit addressing support slightly and
update Python UI docs.
2024-03-17 00:37:13 +02:00
Eero Tamminen 9e35613795 Python UI: drop Hatari v2.2, and add v2.4 options compatibility
Additional complication is names for SCC-B config options changes.
2024-03-17 00:37:13 +02:00
Eero Tamminen e4f54e4173 Python UI: Add SCC-A support to GUI
- Add SCC-A enabling options
- Fix Hatari remote API "sccalan" command name
- Sort paths dialog entries by label instead of Hatari command name,
  and change path labels so that they start with the device type i.e.
  get ordered nicer in the dialog

Fixes: 5eff40495d
2024-01-29 00:47:31 +02:00
Nicolas Pomarede 5eff40495d hatariui.py : update parameters' name for SCC A / SCC A Lan / SCC B in [RS232] config 2024-01-27 14:06:17 +01:00
Eero Tamminen 6b22537a52 Support more Hatari options in Python UI machine dialog
Add support for setting CPU compatibility + cycle-accuracy,
+  FPU type + accuracy, MMU and ST blitter options.

For now this still takes into account whether underlying Hatari
version uses WinUAE core or not.  That will be removed for next
release.
2022-06-17 21:01:42 +03:00
Eero Tamminen 49dc6d870e Python UI: update TT-RAM setting
- Hatari allows now 512MB of TT-RAM
- Align amount to 4MB as Hatari does
- Change deprecated HScale widget to newer Scale widget
2021-01-11 01:54:05 +02:00
Eero Tamminen 3f1d35b5b7 Python UI: fix/improve sound buffer size setting
- Support the (Hatari default) zero (=auto) value
- Change deprecated HScale widget to newer Scale widget
- Add annotations to the widget range
2021-01-11 01:54:05 +02:00
Eero Tamminen c48904d591 Remove Python UI support for obsolete (SDL1) --desktop-st option 2021-01-09 19:47:20 +02:00
Eero Tamminen f2fed66cbc Remove (explicit) Python v2 support
Several of the scripts are likely to continue working with both Python
v2.7 and v3.x still (as they haven't changed significantly in a long
time), but from now on, it's accidental, neither tested nor supported.
2021-01-01 22:56:32 +02:00
Eero Tamminen 8197360164 Fix Python UI asserts on missing Hatari config file
* wait until Hatari has finished writing its config
* check also case where Hatari didn't manage to save config
* show user error dialog on config saving issues
  (Hatari didn't work or config wasn't e.g. writable)

PS. These issues may have been there since 2016 (a6b53512dc)
2020-12-18 17:52:16 +02:00
Eero Tamminen ed55edf795 Add Python UI config file loading error debug messages
And return error from load function instead of proceeding if config
loading failed and there are no defaults given, as things would
definitely fail without even any defaults being there.
2020-12-18 17:52:16 +02:00
Eero Tamminen 9c3156a12b Update Python code copyrights 2020-12-15 16:06:19 +02:00
Eero Tamminen 385a6756d4 Fix issue with Python UI Hatari mass config changes
If config file had invalid paths for some of files, setting full
dialog's worth of options (including faulty ones from config file +
user changed ones) in a single [1] Hatari control API command line
would result in Hatari rejecting all the changes due to one invalid
option value.

Hatari option setting is currently one-way so Python UI doesn't know
about these errors and Hatari doesn't give any indication of them for
user either (except in console).

Therefore this commit will filter out invalid file name options from
the command line (given to Hatari through Python UI control socket).

Note that this is an issue only with (floppy, HD and TOS) image files
as Hatari socket / command line parsing validates those immediately.
It's not an issue with device files as Hatari will itself notify user
about invalid paths and it disabling corresponding device
functionality as result.

[1] Dialog options are given in one go to Hatari so that only one
reboot is needed for all the dialog option changes triggering one.
2020-12-15 00:32:53 +02:00
Eero Tamminen 757f55f11d Remove redundant str() calls from string conversions
Partly in preparation for None (filename) handling in next commit,
and partly for consistency.
2020-12-15 00:25:56 +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 03e693266b Typo fix: divisable -> divisible
Reported by Roger Burrows
2020-03-31 14:21:26 +03:00
Eero Tamminen c464f908a3 Python-UI: support both Python v2 & v3 2019-01-09 23:35:47 +02:00
Eero Tamminen 2bb4e4818a Python-UI: fix to new memory size
Handle Hatari memory sizes being now in KiBs instead of MiBs.
2019-01-09 22:57:58 +02:00
Eero Tamminen 1422db5cba Python-UI: Add SCC-B support 2019-01-09 20:55:58 +02:00
Eero Tamminen 04fdb01732 Add missing imports + update copyrights 2018-10-13 13:32:14 +03:00
Eero Tamminen 70f93f2fa5 Handle Hatari config file format changes
ACSI/SCSI/IDE have now their own sections
2018-10-13 19:35:18 +03:00
Eero Tamminen ca3b93b698 Minor Python-UI option name / description improvements 2018-10-13 13:08:36 +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 9626f47e42 Use win.get_id() instead of win.xid/handle
In hopes that this makes embedding work also with Wayland
(on Ubuntu, issue reported by Vincent).
2017-11-21 21:51:04 +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 a6b53512dc PythonUI: Support for Hatari v2.0 option changes
- no RTC option, instead there's new ModelType option
  that includes MegaST/E (which has RTC)
- WinUAE & oldUAE support different set of CPUs
- Keep ST resolution option is valid only with
  SDL1 builds
2016-12-23 01:26:18 +02:00
Eero Tamminen 7feb7e72b2 PythonUI: Support both Hatari config file locations
Hatari v2.0 config file can now be in:
- ~/.hatari/hatari.cfg (old)
- ~/.config/hatari/hatari.cfg (new)
2016-12-23 00:57:01 +02:00
Eero Tamminen a92294aca5 add Python GUI support for --ttram (sets --addr24 too) 2015-05-13 22:33:03 +03:00
Eero Tamminen 749c9ab30e Python GUI support for GEMDOS HD drive option 2015-05-13 18:12:30 +03:00
Eero Tamminen fb9ec1a84f add support for many new Hatari options 2014-06-27 00:36:29 +03:00
Eero Tamminen b57e9aa915 python GUI support for --desktop-st and --force-max 2012-05-22 00:20:28 +03:00
Eero Tamminen 9fef124a0e remove pipe close exception on Hatari UI startup
On most distros Python handles that fine, it's just ugly output
on console, but apparently on Fedora 16, it causes startup issues:
http://www.atari-forum.com/viewtopic.php?f=51&t=22623
2012-01-27 23:42:38 +02:00
Eero Tamminen ad0f98e098 hatari UI and hatari control socket support for file paths with spaces
(UI code quotes spaces in filenames with '\' and Hatari option
setting supports that now for control socket and debugger.)
2012-01-27 23:39:37 +02:00
Eero Tamminen 218045ccf2 patch from David: fix HZ order 2012-01-09 19:28:25 +02:00
Eero Tamminen 3406c63f6a add YM voice mixing & microphone options, simplify sound HZ option handling 2012-01-08 22:23:08 +02:00
Eero Tamminen 3264d00204 fix minor Hatari UI issues:
- use correct upper limit on max preferred size (=desktop size)
- fix harmless exception on first tracepoints load
- note that keep desktop option concerns only Falcon/TT
- fix typo
2012-01-08 22:10:48 +02:00
Eero Tamminen f0826c8659 less console warnings on Hatari restart in hconsole & hatariui 2012-01-08 02:11:02 +02:00
Eero Tamminen 1ed99f4f62 remove / replace remaining berlios references 2012-01-07 23:15:20 +02:00
Nicolas Pomarède 4a7543b66c Replace --slowfdc by --fastfdc (speed up FDC delays by x10)
For maximum compatibility, the default mode for Hatari is now to run the FDC
at the same speed as a real ST. The option --fastfdc can be used to speed up
most FDC delays (this should works with most of the games/demos, but can lead
sometimes to incompatibilities when the programis expect some precise timings)
2011-10-06 23:29:42 +02:00
Eero Tamminen 1c86fd7fd6 hatariui: hatari max window size defaults now to desktop size
(affects initial window size i.e. avoids resize at beginning)
2011-09-04 22:27:52 +03:00
Eero Tamminen 02056f90cf add --desktop support to Python UI + update TODO 2011-04-21 01:17:47 +03:00
Eero Tamminen 195a368539 add RTC support to python UI 2011-04-21 00:54:41 +03:00
Eero Tamminen 0f1f9de4c7 hatari UI: partial/preliminary Python v3 support 2011-02-19 20:51:26 +02:00
Eero Tamminen 8233a6dbe8 add capture crop support to python UI + finetune other options 2011-01-30 18:58:22 +02:00
Eero Tamminen 412a036315 fix Hatari UI ST/E borders size calculation for max screen size change 2010-05-18 22:36:01 +03:00