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

Method _createUI

python/setupwindow/POL_SetupFrame.py:160–251  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 self.titreP.SetForegroundColour((0, 0, 0)) # For dark themes
159
160 def _createUI(self):
161 # GUI elements
162 self.mainSizer = wx.BoxSizer(wx.VERTICAL)
163 self.SetSizer(self.mainSizer)
164
165 self._createPresentationPanel()
166 self._createHeader()
167 self.mainSizer.AddSpacer(10)
168 self._createMain()
169 self._createFooter()
170
171
172
173
174 self.texte = wx.StaticText(self.contentPanel, -1, "", pos=(20, 0), size=(480, 275), style=wx.ST_NO_AUTORESIZE)
175 self.texte_bis = wx.StaticText(self.contentPanel, -1, "", size=(480, 30), style=wx.ST_NO_AUTORESIZE)
176
177
178
179
180 self.txtEstimation = wx.StaticText(self.contentPanel, -1, "", size=(480, 30), style=wx.ST_NO_AUTORESIZE)
181 self.register_link = ""
182
183
184
185 self.browse = wx.Button(self.contentPanel, 103, _("Browse"), size=(130, 40))
186 self.browse_text = wx.StaticText(self.contentPanel, -1, "")
187 self.browse_image = wx.StaticBitmap(self.contentPanel, -1,
188 wx.Bitmap(os.environ['PLAYONLINUX'] + "/etc/playonlinux.png"))
189
190 # D'autres trucs
191 self.champ = wx.TextCtrl(self.contentPanel, 400, "", size=(300, 22))
192
193 self.bigchamp = wx.TextCtrl(self.contentPanel, -1, "", size=wx.Size(460, 240), pos=(30, 25),
194 style=Variables.widget_borders | wx.TE_MULTILINE)
195 self.MCheckBox = wx.CheckBox(self.contentPanel, 302, _("I Agree"), pos=(20, 245))
196 self.NCheckBox = wx.CheckBox(self.contentPanel, 305, _("Don't remind me anymore"), pos=(20, 245))
197 self.PCheckBox = wx.CheckBox(self.contentPanel, 304, _("Show virtual drives"), pos=(20, 245))
198 self.Menu = wx.ListBox(self.contentPanel, 104, pos=(25, 25), size=(460, 220), style=Variables.widget_borders)
199 self.scrolled_panel = wx.ScrolledWindow(self.contentPanel, -1, pos=(20, 20), size=(460, 220),
200 style=Variables.widget_borders | wx.HSCROLL | wx.VSCROLL)
201 self.scrolled_panel.SetBackgroundColour((255, 255, 255))
202 self.texte_panel = wx.StaticText(self.scrolled_panel, -1, "", pos=(5, 5))
203
204 self.gauge = wx.Gauge(self.contentPanel, -1, 50, size=(375, 20))
205 self.WaitButton = wx.Button(self.contentPanel, 310, "", size=(250, 25))
206
207 self.animation = wx.StaticBitmap(self.contentPanel, -1, self.GetLoaderFromAngle(1), (228, 170))
208 self.current_angle = 1
209
210 self.images = wx.ImageList(22, 22)
211 self.MenuGames = wx.TreeCtrl(self.contentPanel, 111,
212 style=wx.TR_HIDE_ROOT | wx.TR_FULL_ROW_HIGHLIGHT | Variables.widget_borders,
213 pos=(25, 25), size=(460, 220))
214 self.MenuGames.SetImageList(self.images)
215 self.MenuGames.SetSpacing(0)
216
217 # Login

Callers 1

__init__Method · 0.95

Calls 6

_createHeaderMethod · 0.95
_createMainMethod · 0.95
_createFooterMethod · 0.95
GetLoaderFromAngleMethod · 0.95
resetSetupWindowMethod · 0.95

Tested by

no test coverage detected