Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:deltafox
chirp
chirp-backport-to-python36.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chirp-backport-to-python36.patch of Package chirp
Index: chirp-20230701/chirp/wxui/main.py =================================================================== --- chirp-20230701.orig/chirp/wxui/main.py +++ chirp-20230701/chirp/wxui/main.py @@ -369,11 +369,12 @@ class ChirpWelcomePanel(wx.Panel): vbox = wx.BoxSizer(wx.VERTICAL) self.SetSizer(vbox) - with importlib_resources.as_file( - importlib_resources.files('chirp.share') - .joinpath('welcome_screen.png') - ) as welcome: - bmp = wx.Bitmap(str(welcome)) +# with importlib_resources.as_file(3 +# importlib_resources.files('chirp.share') +# .joinpath('welcome_screen.png') +# ) as welcome: + welcome = '/usr/lib/python3.6/site-packages/chirp/share/welcome_screen.png' + bmp = wx.Bitmap(str(welcome)) width, height = self.GetSize() img = wx.StaticBitmap(self, wx.ID_ANY, bmp) vbox.Add(img, 1, flag=wx.EXPAND) @@ -448,11 +449,12 @@ class ChirpMain(wx.Frame): self.add_tab_panel = wx.Panel(self, pos=(0, 0), size=(600, 600)) self.add_tab_panel.Hide() - with importlib_resources.as_file( - importlib_resources.files('chirp.share') - .joinpath('plus-icon.png') - ) as icon: - self.add_tab_bm = wx.Bitmap(str(icon), wx.BITMAP_TYPE_ANY) +# with importlib_resources.as_file( +# importlib_resources.files('chirp.share') +# .joinpath('plus-icon.png') +# ) as icon: + icon = '/usr/lib/python3.6/site-packages/chirp/share/plus-icon.png' + self.add_tab_bm = wx.Bitmap(str(icon), wx.BITMAP_TYPE_ANY) self.add_tab_panel.Bind(wx.EVT_PAINT, self._paint_add_tab_panel) @@ -520,11 +522,12 @@ class ChirpMain(wx.Frame): icon = 'chirp.ico' else: icon = 'chirp.png' - with importlib_resources.as_file( - importlib_resources.files('chirp.share') - .joinpath(icon) - ) as path: - self.SetIcon(wx.Icon(str(path))) +# with importlib_resources.as_file( +# importlib_resources.files('chirp.share') +# .joinpath(icon) +# ) as path: + path = '/usr/lib/python3.6/site-packages/chirp/share/chirp.png' + self.SetIcon(wx.Icon(str(path))) @property def current_editorset(self): @@ -1220,11 +1223,12 @@ class ChirpMain(wx.Frame): user_stock_dir = get_stock_configs() user_stock_conf = os.path.join(user_stock_dir, fn) - with importlib_resources.as_file( - importlib_resources.files('chirp.stock_configs') - .joinpath(fn) - ) as path: - dist_stock_conf = str(path) +# with importlib_resources.as_file( +# importlib_resources.files('chirp.stock_configs') +# .joinpath(fn) +# ) as path: + path = '/usr/lib/python3.6/site-packages/chirp/stock_configs' + dist_stock_conf = str(path) if os.path.exists(user_stock_conf): filename = user_stock_conf elif os.path.exists(dist_stock_conf):
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor