-
Notifications
You must be signed in to change notification settings - Fork 164
- Added submenus for the Links. #285
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
Conversation
- Added submenu for the Links. Since, PixelFlasher is the most useful and know tool for all, i think for lot users (demanding) need more details, so i have create submenu (XDA and GitHub) with a few more links for useful threads, with the already existing icons.
Right, thanks for pointing out. Thanks |
In short, as you originally had it. |
No don't remove XDA links, just put them under |
Exactly. You want new PR, or make all the changes to this? |
@badabing2005 |
Sure why not |
- Delete submenu (XDA and GitHub). - XDA new Links. - Proper icons for GitHub and XDA Links. - Remove https://github.com/TheFreeman193/PIFS because it is abandoned.
Main.py
Outdated
self.linksMenuItem6.SetBitmap(images.open_link_24.GetBitmap()) | ||
self.linksMenuItem7.SetBitmap(images.open_link_24.GetBitmap()) | ||
self.linksMenuItem7.SetBitmap(images.open_link_24.GetBitmap()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty space
Main.py
Outdated
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem1) | ||
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem2) | ||
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem3) | ||
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem4) | ||
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem5) | ||
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem6) | ||
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem7) | ||
self.Bind(wx.EVT_MENU, self._on_link_clicked, self.linksMenuItem7) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty space
Main.py
Outdated
@@ -1874,48 +1874,55 @@ def _build_menu_bar(self): | |||
# separator | |||
help_menu.AppendSeparator() | |||
# Links Submenu | |||
links = wx.Menu() | |||
links = wx.Menu() | |||
self.linksMenuItem15 = links.Append(wx.ID_ANY, "osm0sis\'s PIF FAQ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guides has to be on Top, not XDA links.
self.linksMenuItem11.GetId(): (FACTORY_IMAGES_FOR_WATCH_DEVICES, "Factory Images for Pixel Watches"), | ||
self.linksMenuItem12.GetId(): (FULL_OTA_IMAGES_FOR_BETA, "Full OTA Images for Pixel Beta 15"), | ||
self.linksMenuItem13.GetId(): (FACTORY_IMAGES_FOR_BETA, "Factory Images for Pixel Beta 15"), | ||
self.linksMenuItem14.GetId(): ('https://github.com/5ec1cff/TrickyStore', "5ec1cff's TrickyStore"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't hardcode the links in the Main.py
Define them in the constants.py like the others and use the constant instead.
Main.py
Outdated
self.linksMenuItem12.GetId(): (FULL_OTA_IMAGES_FOR_BETA, "Full OTA Images for Pixel Beta 15"), | ||
self.linksMenuItem13.GetId(): (FACTORY_IMAGES_FOR_BETA, "Factory Images for Pixel Beta 15"), | ||
self.linksMenuItem14.GetId(): ('https://github.com/5ec1cff/TrickyStore', "5ec1cff's TrickyStore"), | ||
self.linksMenuItem15.GetId(): ('https://xdaforums.com/t/pif-faq.4653307/', "osm0sis's PIF FAQ"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't hardcode the links in the Main.py
Define them in the constants.py like the others and use the constant instead.
Main.py
Outdated
self.linksMenuItem14.GetId(): ('https://github.com/5ec1cff/TrickyStore', "5ec1cff's TrickyStore"), | ||
self.linksMenuItem15.GetId(): ('https://xdaforums.com/t/pif-faq.4653307/', "osm0sis's PIF FAQ"), | ||
self.linksMenuItem16.GetId(): ('https://xdaforums.com/t/info-play-integrity-api-replacement-for-safetynet.4479337/', "V0latyle\'s PI API Info"), | ||
self.linksMenuItem17.GetId(): ('https://xdaforums.com/t/module-play-integrity-fix-safetynet-fix.4607985/', "chiteroman's PlayIntegrityFix"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't hardcode the links in the Main.py
Define them in the constants.py like the others and use the constant instead.
Main.py
Outdated
self.linksMenuItem15.GetId(): ('https://xdaforums.com/t/pif-faq.4653307/', "osm0sis's PIF FAQ"), | ||
self.linksMenuItem16.GetId(): ('https://xdaforums.com/t/info-play-integrity-api-replacement-for-safetynet.4479337/', "V0latyle\'s PI API Info"), | ||
self.linksMenuItem17.GetId(): ('https://xdaforums.com/t/module-play-integrity-fix-safetynet-fix.4607985/', "chiteroman's PlayIntegrityFix"), | ||
self.linksMenuItem18.GetId(): ('https://xdaforums.com/t/tricky-store-bootloader-keybox-spoofing.4683446/', "Tricky Store (Support Thread)"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't hardcode the links in the Main.py
Define them in the constants.py like the others and use the constant instead.
Main.py
Outdated
links = wx.Menu() | ||
links = wx.Menu() | ||
self.linksMenuItem15 = links.Append(wx.ID_ANY, "osm0sis\'s PIF FAQ") | ||
self.linksMenuItem16 = links.Append(wx.ID_ANY, "V0latyle\'s PI API Info") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guides has to be on Top, not XDA links.
Main.py
Outdated
links = wx.Menu() | ||
self.linksMenuItem15 = links.Append(wx.ID_ANY, "osm0sis\'s PIF FAQ") | ||
self.linksMenuItem16 = links.Append(wx.ID_ANY, "V0latyle\'s PI API Info") | ||
self.linksMenuItem17 = links.Append(wx.ID_ANY, "chiteroman\'s PlayIntegrityFix") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guides has to be on Top, not XDA links.
Main.py
Outdated
self.linksMenuItem15 = links.Append(wx.ID_ANY, "osm0sis\'s PIF FAQ") | ||
self.linksMenuItem16 = links.Append(wx.ID_ANY, "V0latyle\'s PI API Info") | ||
self.linksMenuItem17 = links.Append(wx.ID_ANY, "chiteroman\'s PlayIntegrityFix") | ||
self.linksMenuItem18 = links.Append(wx.ID_ANY, "Tricky Store (Support Thread)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guides has to be on Top, not XDA links.
Since, PixelFlasher is the most useful and know tool for all, i think for lot users (demanding) need more details, so i have create submenus (XDA and GitHub) with a few more links for useful threads, with the already existing icons.