sebp / sebp/PyGObject-Tutorial

Should we use self.set_title(title="...") instead

Open
#200 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
392
Forks
157
PR merge metrics
No merged PRs in 30d

Description

Hi,

I just send the PR #199. I was conservative.

It may be even nicer to change all instances from:

super().__init__(title="...")

to even cleaner style:

super().__init__()
self.set_title(title="...")

This example is more expandable for user in future. Just a thought ...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review PR #199 first, then locate the tutorial instances using super().init(title="...") and compare them with the proposed self.set_title(title="...") style. Done means deciding on the style and updating all applicable instances consistently; the payload names no specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.