Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tkinter: PhotoImage transparency methods #69637

Closed
NoneBecoming mannequin opened this issue Oct 21, 2015 · 3 comments
Closed

tkinter: PhotoImage transparency methods #69637

NoneBecoming mannequin opened this issue Oct 21, 2015 · 3 comments
Labels
3.8 only security fixes topic-tkinter type-feature A feature request or enhancement

Comments

@NoneBecoming
Copy link
Mannequin

NoneBecoming mannequin commented Oct 21, 2015

BPO 25451
Nosy @terryjreedy, @mkiever, @serhiy-storchaka, @ZackerySpytz
PRs
  • bpo-25451: Add transparency methods to tkinter.PhotoImage #10406
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-04-05.10:29:17.806>
    created_at = <Date 2015-10-21.08:56:35.452>
    labels = ['3.8', 'type-feature', 'expert-tkinter']
    title = 'tkinter: PhotoImage transparency methods'
    updated_at = <Date 2019-04-05.10:29:17.806>
    user = 'https://bugs.python.org/NoneBecoming'

    bugs.python.org fields:

    activity = <Date 2019-04-05.10:29:17.806>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-04-05.10:29:17.806>
    closer = 'serhiy.storchaka'
    components = ['Tkinter']
    creation = <Date 2015-10-21.08:56:35.452>
    creator = 'None Becoming'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 25451
    keywords = ['patch']
    message_count = 3.0
    messages = ['253281', '329455', '339491']
    nosy_count = 5.0
    nosy_names = ['terry.reedy', 'mkiever', 'serhiy.storchaka', 'None Becoming', 'ZackerySpytz']
    pr_nums = ['10406']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue25451'
    versions = ['Python 3.8']

    @NoneBecoming
    Copy link
    Mannequin Author

    NoneBecoming mannequin commented Oct 21, 2015

    The transparency methods of tkinter.PhotoImage seem to be missing.
    Presumably, they would go something like:

    def transparency_get(self, x, y):
        """Returns a boolean indicating if the pixel at (x,y) is transparent. """
        
        return self.tk.call(self.name, 'transparency', 'get', x, y)
    
    def transparency_set(self, x, y, boolean=True):
        """Make pixel at (x,y) transparent if boolean is true, opaque otherwise. """
        
        self.tk.call(self.name, 'transparency', 'set', x, y, boolean)

    @NoneBecoming NoneBecoming mannequin added topic-tkinter type-feature A feature request or enhancement labels Oct 21, 2015
    @vstinner vstinner changed the title PhotoImage transparency methods tkinter: PhotoImage transparency methods Oct 22, 2015
    @ZackerySpytz
    Copy link
    Mannequin

    ZackerySpytz mannequin commented Nov 8, 2018

    I've created a PR for this issue.

    @ZackerySpytz ZackerySpytz mannequin added the 3.8 only security fixes label Nov 8, 2018
    @serhiy-storchaka
    Copy link
    Member

    New changeset 50866e9 by Serhiy Storchaka (Zackery Spytz) in branch 'master':
    bpo-25451: Add transparency methods to tkinter.PhotoImage. (GH-10406)
    50866e9

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes topic-tkinter type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant