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

tkColorChooser may fail if no color is selected #48017

Closed
gpolo mannequin opened this issue Sep 3, 2008 · 4 comments
Closed

tkColorChooser may fail if no color is selected #48017

gpolo mannequin opened this issue Sep 3, 2008 · 4 comments

Comments

@gpolo
Copy link
Mannequin

gpolo mannequin commented Sep 3, 2008

BPO 3767
Nosy @loewis
Files
  • str_result.diff
  • tkColorChooser.diff
  • 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 = 'https://github.com/loewis'
    closed_at = <Date 2008-12-29.16:28:46.232>
    created_at = <Date 2008-09-03.22:32:10.522>
    labels = ['expert-tkinter', 'release-blocker']
    title = 'tkColorChooser may fail if no color is selected'
    updated_at = <Date 2008-12-29.16:28:46.231>
    user = 'https://bugs.python.org/gpolo'

    bugs.python.org fields:

    activity = <Date 2008-12-29.16:28:46.231>
    actor = 'loewis'
    assignee = 'loewis'
    closed = True
    closed_date = <Date 2008-12-29.16:28:46.232>
    closer = 'loewis'
    components = ['Tkinter']
    creation = <Date 2008-09-03.22:32:10.522>
    creator = 'gpolo'
    dependencies = []
    files = ['11364', '12043']
    hgrepos = []
    issue_num = 3767
    keywords = ['patch']
    message_count = 4.0
    messages = ['72425', '76007', '77745', '78462']
    nosy_count = 2.0
    nosy_names = ['loewis', 'gpolo']
    pr_nums = []
    priority = 'release blocker'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue3767'
    versions = ['Python 2.6', 'Python 3.0', 'Python 2.7']

    @gpolo
    Copy link
    Mannequin Author

    gpolo mannequin commented Sep 3, 2008

    Chooser._fixresult in the tkColorChooser module uses "if not result" to
    check if user canceled the dialog, but nowadays Tk may return a cached
    object that contains the result we are after, so, this object will not
    simply evaluate to false and _fixresult will act like if the user didn't
    cancel the dialog.
    The fix is simple, just get the real value of result in that check.

    @gpolo gpolo mannequin added the topic-tkinter label Sep 3, 2008
    @gpolo
    Copy link
    Mannequin Author

    gpolo mannequin commented Nov 18, 2008

    I've noticed a problem with the previous patch, so this new one includes
    a comment too so people can remember about the check being applied.

    @loewis loewis mannequin added the release-blocker label Dec 10, 2008
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Dec 13, 2008

    Thanks for the patch.

    Committed tkColorChooser.diff as r67738 in the 2.5 branch. Applying this
    to the other branches still needs to be done.

    @loewis loewis mannequin added deferred-blocker and removed release-blocker labels Dec 13, 2008
    @loewis loewis mannequin self-assigned this Dec 13, 2008
    @loewis loewis mannequin added release-blocker and removed deferred-blocker labels Dec 20, 2008
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Dec 29, 2008

    Committed into various branches as r68010, r68011, r68012, and r68013

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants