Cédric Krier pushed to branch branch/default at Tryton / GooCalendar
Commits:
2fa0f66b by Cédric Krier at 2022-12-27T11:08:46+01:00
Sort imports with isort
- - - - -
5 changed files:
- examples/simple.py
- goocalendar/__init__.py
- goocalendar/_calendar.py
- goocalendar/util.py
- setup.py
Changes:
=====================================
examples/simple.py
=====================================
@@ -2,4 +2,7 @@
# this repository contains the full copyright notices and license terms.
import datetime
+
+from gi.repository import Gdk, Gtk
+
from goocalendar import Calendar, Event, EventStore
@@ -5,5 +8,4 @@
from goocalendar import Calendar, Event, EventStore
-from gi.repository import Gdk, Gtk
def on_event_pressed(calendar, event, event_store):
=====================================
goocalendar/__init__.py
=====================================
@@ -1,6 +1,7 @@
# This file is part of GooCalendar. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import gi
+
gi.require_version('Gtk', '3.0')
gi.require_version('Gdk', '3.0')
try:
=====================================
goocalendar/_calendar.py
=====================================
@@ -1,3 +1,4 @@
# This file is part of GooCalendar. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
+import calendar
import datetime
@@ -3,5 +4,4 @@
import datetime
-import calendar
import math
from gi.repository import Gdk, GObject, GooCanvas, Gtk, Pango
=====================================
goocalendar/util.py
=====================================
@@ -1,3 +1,4 @@
# This file is part of GooCalendar. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
+import datetime
import sys
@@ -3,5 +4,4 @@
import sys
-import datetime
def my_weekdatescalendar(cal, date):
=====================================
setup.py
=====================================
@@ -6,7 +6,8 @@
import io
import os
import re
-from setuptools import setup, find_packages
+
+from setuptools import find_packages, setup
def read(fname):
View it on Heptapod:
https://foss.heptapod.net/tryton/goocalendar/-/commit/2fa0f66bb3b76ef5e3f0da5dac1d313c572159b5
--
View it on Heptapod:
https://foss.heptapod.net/tryton/goocalendar/-/commit/2fa0f66bb3b76ef5e3f0da5dac1d313c572159b5
You're receiving this email because of your account on foss.heptapod.net.