65d77bfdccc8b126f8e69d167df7d7713cf358fa,lib/matplotlib/backends/backend_wx.py,,_set_frame_icon,#Any#,1242

Before Change


    // set frame icon
    bundle = wx.IconBundle()
    for image in ("matplotlib.png", "matplotlib_large.png"):
        image = os.path.join(matplotlib.rcParams["datapath"], "images", image)
        if not os.path.exists(image):
            continue
        icon = wx.Icon(_load_bitmap(image))
        if not icon.IsOk():
            return
        bundle.AddIcon(icon)

After Change


def _set_frame_icon(frame):
    bundle = wx.IconBundle()
    for image in ("matplotlib.png", "matplotlib_large.png"):
        try:
            icon = wx.Icon(_load_bitmap(image))
        except IOError:
            continue
        if not icon.IsOk():
            return
        bundle.AddIcon(icon)
    frame.SetIcons(bundle)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: matplotlib/matplotlib
Commit Name: 65d77bfdccc8b126f8e69d167df7d7713cf358fa
Time: 2019-05-22
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_wx.py
Class Name:
Method Name: _set_frame_icon


Project Name: pytorch/tutorials
Commit Name: 00e131977b4e2cbe134f8832f3fbac7940644586
Time: 2018-08-29
Author: minkawhich@fb.com
File Name: beginner_source/hybrid_frontend/introduction_to_hybrid_frontend_tutorial.py
Class Name:
Method Name:


Project Name: pyinstaller/pyinstaller
Commit Name: 24ba9242eab7dc30eafe3665640b37635864c1d3
Time: 2012-06-04
Author: mzibr.public@gmail.com
File Name: support/rthooks/pyi_rth_win32comgenpy.py
Class Name:
Method Name: