Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue25451

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:tkinter: PhotoImage transparency methods
Type:enhancementStage:resolved
Components:TkinterVersions:Python 3.8
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: None Becoming, ZackerySpytz, mkiever, serhiy.storchaka, terry.reedy
Priority:normalKeywords:patch

Created on2015-10-21 08:56 byNone Becoming, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 10406mergedZackerySpytz,2018-11-08 06:46
Messages (3)
msg253281 -(view)Author: (None Becoming)Date: 2015-10-21 08:56
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)
msg329455 -(view)Author: Zackery Spytz (ZackerySpytz)*(Python triager)Date: 2018-11-08 06:47
I've created a PR for this issue.
msg339491 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2019-04-05 10:17
New changeset50866e9ed3e4e0ebb60c20c3483a8df424c02722 by Serhiy Storchaka (Zackery Spytz) in branch 'master':bpo-25451: Add transparency methods to tkinter.PhotoImage. (GH-10406)https://github.com/python/cpython/commit/50866e9ed3e4e0ebb60c20c3483a8df424c02722
History
DateUserActionArgs
2022-04-11 14:58:23adminsetgithub: 69637
2019-04-05 10:29:17serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-04-05 10:17:17serhiy.storchakasetmessages: +msg339491
2018-11-08 06:47:50ZackerySpytzsetnosy: +ZackerySpytz

messages: +msg329455
versions: + Python 3.8, - Python 3.6
2018-11-08 06:46:49ZackerySpytzsetkeywords: +patch
stage: needs patch -> patch review
pull_requests: +pull_request9690
2018-04-08 16:53:10mkieversetnosy: +mkiever
2015-10-26 01:37:26terry.reedysetnosy: +terry.reedy,serhiy.storchaka
stage: needs patch

versions: + Python 3.6
2015-10-22 12:00:03vstinnersettitle: PhotoImage transparency methods -> tkinter: PhotoImage transparency methods
2015-10-21 08:56:35None Becomingcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp