Skip to content

Commit

Permalink
Fix GTK version numbering in system_info.py
Browse files Browse the repository at this point in the history
- present the GTK version numbers in "major.minor.micro" order
- adjust a related docstring
  • Loading branch information
gycsaba96 authored and diegogangl committed Jan 21, 2025
1 parent 7d40647 commit b447615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GTG/core/system_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def get_system_info(self, report: bool = False) -> str:

def __version_to_string(self, version: tuple) -> str:
"""
Convert version tuple (major, micro, minor)
version to string (major.micro.minor).
Convert version tuple (major, minor, micro)
version to string (major.minor.micro).
"""
return ".".join(map(str, version))

Expand Down Expand Up @@ -106,8 +106,8 @@ def __get_gtk_version(self) -> Tuple[int,int,int]:
"""Get GTK version."""
return (
Gtk.get_major_version(),
Gtk.get_micro_version(),
Gtk.get_minor_version(),
Gtk.get_micro_version(),
)


Expand Down

0 comments on commit b447615

Please sign in to comment.