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 clipboard_get method (new in Tk 8.4) #41160

Closed
mfranklin1 mannequin opened this issue Nov 10, 2004 · 5 comments
Closed

Tkinter clipboard_get method (new in Tk 8.4) #41160

mfranklin1 mannequin opened this issue Nov 10, 2004 · 5 comments
Assignees

Comments

@mfranklin1
Copy link
Mannequin

mfranklin1 mannequin commented Nov 10, 2004

BPO 1063914
Nosy @loewis
Files
  • CDIFF: created with diff -c TkinterOLD.py Tkinter.py on RH9
  • 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 2006-04-16.20:57:23.000>
    created_at = <Date 2004-11-10.16:07:26.000>
    labels = ['expert-tkinter']
    title = 'Tkinter clipboard_get method (new in Tk 8.4)'
    updated_at = <Date 2006-04-16.20:57:23.000>
    user = 'https://bugs.python.org/mfranklin1'

    bugs.python.org fields:

    activity = <Date 2006-04-16.20:57:23.000>
    actor = 'loewis'
    assignee = 'loewis'
    closed = True
    closed_date = None
    closer = None
    components = ['Tkinter']
    creation = <Date 2004-11-10.16:07:26.000>
    creator = 'mfranklin1'
    dependencies = []
    files = ['6361']
    hgrepos = []
    issue_num = 1063914
    keywords = ['patch']
    message_count = 5.0
    messages = ['47282', '47283', '47284', '47285', '47286']
    nosy_count = 3.0
    nosy_names = ['loewis', 'jepler', 'mfranklin1']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1063914'
    versions = ['Python 2.5']

    @mfranklin1
    Copy link
    Mannequin Author

    mfranklin1 mannequin commented Nov 10, 2004

    When Tkinter was patched to include the new Tk 8.4 stuff
    the clipboard_get method was left out. The attached
    diff -c
    file should fix this...

    @mfranklin1 mfranklin1 mannequin closed this as completed Nov 10, 2004
    @mfranklin1 mfranklin1 mannequin assigned loewis Nov 10, 2004
    @mfranklin1 mfranklin1 mannequin added the topic-tkinter label Nov 10, 2004
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Nov 10, 2004

    Logged In: YES
    user_id=21627

    It's too late for 2.4; retargetting for 2.5.

    @mfranklin1
    Copy link
    Mannequin Author

    mfranklin1 mannequin commented Nov 11, 2004

    Logged In: YES
    user_id=482545

    Thanks Martin I wasn't sure...

    I wanted to point out that this method raises a TclError if
    it is called when the clipboard is empty... not sure if that
    is pythonic or not... perhaps I could catch it and return an
    empty string? Perhaps I should bring this up on the Tkinter
    mail list...

    @jepler
    Copy link
    Mannequin

    jepler mannequin commented Apr 12, 2005

    Logged In: YES
    user_id=2772

    The existing selection_get method also raises TclError,
    instead of returning some sentinel value. clipboard_get
    should do the same.

    >>> t.selection_get(type="INTEGER")
    TclError: PRIMARY selection doesn't exist or form "INTEGER"
    not defined

    The patch looks obviously correct. Under light testing, it
    worked properly (Python 2.3.5 / Linux), Recommend "apply".

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Apr 16, 2006

    Logged In: YES
    user_id=21627

    Thanks for the patch, applied as r45461. I agree with jepler
    in all points.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    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