113 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
Thomas Huth 1a48e4dcc0 Update hyperlinks to the new home of Hatari 2025-02-09 10:13:40 +01:00
Eero Tamminen 39989b8aa8 Update Python tools to recent changes 2024-06-19 02:29:08 +03:00
Yves Le Berre 5cd7b10ea2 python-ui: add missing closing parenthesis to checkbox texts 2024-06-04 11:36:08 +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 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
Eero Tamminen ee8137d2d8 Add "cpu_video_cycles" also to Python UI trace dialog 2023-07-01 00:04:24 +03: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 dcdbedde4d Hatari UI display dialog layout change: VBox -> Table
Table layout is more readable and consistent with other dialogs.
Dialog value getting and setting are also split to their own methods.
2022-05-31 00:58:12 +03:00
Eero Tamminen fc4a3d5a62 Hatari UI sound dialog layout change: VBox -> Table
Table layout is more readable and consistent with other dialogs.
Dialog value getting and setting are also split to their own methods.
2022-05-31 00:58:12 +03: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 a0cb9ce563 Improve Hatari UI machine dialog
Using combo boxes instead of radio buttons makes the dialog clearer.
2022-05-30 02:05:29 +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 045b9015fd Add missing "scc" trace option to Hatari UI 2022-05-30 02:05:29 +03:00
Thomas Huth 90706e1c9d Fix some typos (discovered with codespell) 2022-05-28 08:51:39 +02:00
Eero Tamminen 8302d8e3cb Increase max TT-RAM amount to 1024 MiB
As requested in in atari-forum thread, pointing out HW
modification allowing this amount of TT-RAM:
https://www.atari-forum.com/viewtopic.php?t=41770
2022-04-22 00:44:20 +03:00
Eero Tamminen 61634f20c9 Improve MIDI tracing
- Move MIDI IRQ & register read/write trace output to separate
  "midi_raw" option, as that output being triggered just by moving
  mouse messes up debugging rest of MIDI funcionality
- Log PortMidi device open failures
2021-12-13 22:30:58 +02:00
Eero Tamminen 859e497f82 Python UI: update Hatari trace options list and sort it 2021-01-11 01:54:05 +02: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 c47320c4a6 Python UI: change rest of deprecated HScale widgets to Scale ones
Also add tooltips to debugger options settings, and set DisplayDialog
variables in both instances in same order.
2021-01-11 01:54:05 +02: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 9c3156a12b Update Python code copyrights 2020-12-15 16:06:19 +02:00
Eero Tamminen 4f42bc0639 Fixes / improvements to Python UI quit handling
- If user cancels, config changes aren't discarded, so change text
  to ignore
- Ask for config save/ignore/cancel before killing Hatari,
  as quitting can't be canceled after Hatari is dead
- Scale config viewport with dialog resizes, otherwise viewing
  larger number of changes is hard
- Improve Hatari kill dialog text

Resize handling requires GtkScrolledWindow functions that came in Gtk
v3.22, which is available in Ubuntu 16.04 and Debian 9 (current
oldstable) => update docs accordingly.
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
Nicolas Pomarede 123d5a238b Typo : use licensed (US) instead of licenced (UK) for consistency with rest of the sources 2019-07-29 15:47:58 +02:00
Eero Tamminen c464f908a3 Python-UI: support both Python v2 & v3 2019-01-09 23:35:47 +02:00
Eero Tamminen 1422db5cba Python-UI: Add SCC-B support 2019-01-09 20:55:58 +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 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 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 2a3944bda2 Add missing trace options 2016-10-29 19:42:13 +03:00
Eero Tamminen a92294aca5 add Python GUI support for --ttram (sets --addr24 too) 2015-05-13 22:33:03 +03:00
Eero Tamminen 29b59a2997 add new trace options 2015-05-13 21:57:27 +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 31fd849c81 update python ui trace list 2013-03-26 17:03:34 +02:00
Eero Tamminen b57e9aa915 python GUI support for --desktop-st and --force-max 2012-05-22 00:20:28 +03:00
Eero Tamminen 56fa3e0465 update gui strings 2012-05-21 23:58:36 +03: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 1ed99f4f62 remove / replace remaining berlios references 2012-01-07 23:15:20 +02:00