Skip to content

Commit

Permalink
Bump version to 1.0.5 and fix some GTK version
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulRaven committed Jun 10, 2024
1 parent 43db925 commit 3b64da4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "sgzenity"
version = "1.0.4"
version = "1.0.5"
description = "sgzentry is a library for python which was inspired by Zenity. When you write scripts, you can use sgzentry to create simple dialogs that interact graphically with the user."
homepage="https://github.com/SoftGeekRO/sgzenity"
repository="https://github.com/SoftGeekRO/sgzenity.git"
Expand Down
5 changes: 2 additions & 3 deletions src/sgzenity/sgszenity.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

import gi

gi.require_version('Gtk', '4.0')

gi.require_version('Gtk', '3.0')
from gi.repository import GLib, Gtk

DEFAULT_WIDTH = 330
Expand Down Expand Up @@ -177,7 +176,7 @@ def init_dialog(self):
# example: [1,2,3,4,5] -> (1,2,3), (4,5,'')
def group(items, nb_cols):
for i in range(0, len(items), nb_cols):
group = items[i : i + nb_cols]
group = items[i:i + nb_cols]
if len(group) == nb_cols:
yield (tuple(group))
else:
Expand Down

0 comments on commit 3b64da4

Please sign in to comment.