mirror of
https://git.hiabuto.net/C3MA/CCMA.git
synced 2026-07-01 03:04:52 +02:00
Fix ruff lint violations
This commit is contained in:
@@ -8,17 +8,16 @@ from tkinter import messagebox, ttk
|
||||
|
||||
from ccma.domain.contributions import CLAIM_STATUS_LABELS, claim_status, claim_total, money_text
|
||||
from ccma.domain.dates import age_label, date_input_hint, format_date_for_display
|
||||
from ccma.domain.models import ASSET_STATUS_LABELS, MEMBERSHIP_STATUS_LABELS as STATUS_LABELS
|
||||
from ccma.domain.models import Event
|
||||
from ccma.domain.models import ASSET_STATUS_LABELS, Event
|
||||
from ccma.domain.models import MEMBERSHIP_STATUS_LABELS as STATUS_LABELS
|
||||
from ccma.storage.repository import MemberRepository, RepositoryError
|
||||
from ccma.ui.document_dialog import DocumentTemplateDialog
|
||||
from ccma.ui.dialogs import IntegrityWarningDialog
|
||||
from ccma.ui.document_dialog import DocumentTemplateDialog
|
||||
from ccma.ui.file_open import open_path
|
||||
from ccma.ui.labels import display_label, storage_key
|
||||
from ccma.ui.messages import MessageAction, MessageBannerList, TabMessage
|
||||
from ccma.ui.scrolling import ScrollableFrame
|
||||
|
||||
|
||||
CLAIM_TABLE_COLUMNS = (
|
||||
("title", "Forderung", 220),
|
||||
("due", "Fällig", 100),
|
||||
@@ -287,8 +286,12 @@ class MemberTab(ttk.Frame):
|
||||
ttk.Button(asset_actions, text="Asset öffnen", command=self._open_selected_asset).pack(
|
||||
side="left", padx=(0, 8)
|
||||
)
|
||||
ttk.Button(asset_actions, text="Ausgewähltes Asset zurücknehmen", command=self._return_selected_asset).pack(
|
||||
side="left"
|
||||
ttk.Button(
|
||||
asset_actions,
|
||||
text="Ausgewähltes Asset zurücknehmen",
|
||||
command=self._return_selected_asset,
|
||||
).pack(
|
||||
side="left",
|
||||
)
|
||||
|
||||
documents_tab.columnconfigure(0, weight=1)
|
||||
@@ -493,7 +496,11 @@ class MemberTab(ttk.Frame):
|
||||
suffix = ""
|
||||
if key == self.claim_sort_column:
|
||||
suffix = " v" if self.claim_sort_descending else " ^"
|
||||
self.claims.heading(key, text=f"{title}{suffix}", command=lambda column=key: self._toggle_claim_sort(column))
|
||||
self.claims.heading(
|
||||
key,
|
||||
text=f"{title}{suffix}",
|
||||
command=lambda column=key: self._toggle_claim_sort(column),
|
||||
)
|
||||
|
||||
def _open_selected_claim(self) -> None:
|
||||
selected = self.claims.selection()
|
||||
|
||||
Reference in New Issue
Block a user