MCPcopy Create free account
hub / github.com/PlayOnLinux/POL-POM-4 / iconDisplay

Method iconDisplay

python/mainwindow.py:669–687  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

667 playonlinux.POL_Open(url)
668
669 def iconDisplay(self, event):
670 iconEvent = event.GetId()
671
672 if (iconEvent == 501):
673 self.iconSize = 16
674 if (iconEvent == 502):
675 self.iconSize = 24
676 if (iconEvent == 503):
677 self.iconSize = 32
678 if (iconEvent == 504):
679 self.iconSize = 48
680
681 playonlinux.SetSettings("ICON_SIZE", str(self.iconSize))
682 self.list_game.SetImageList(self.imagesEmpty)
683 self.images.Destroy()
684 self.images = wx.ImageList(self.iconSize, self.iconSize)
685 self.list_game.SetImageList(self.images)
686
687 self.Reload(self)
688
689 def UpdateInstructions(self, event):
690 if (os.environ["POL_OS"] == "Mac"):

Callers

nothing calls this directly

Calls 2

ReloadMethod · 0.95
DestroyMethod · 0.45

Tested by

no test coverage detected