MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / setup_setting_ui

Method setup_setting_ui

tools/sconsui.py:335–374  ·  view source on GitHub ↗
(self, frame)

Source from the content-addressed store, hash-verified

333 button.pack(side=RIGHT, padx = 10, pady = 10)
334
335 def setup_setting_ui(self, frame):
336 row = 0
337 label = ttk.Label (frame, relief = 'flat', text='RT-Thread Root Folder:')
338 label.grid(row=row, column=0,ipadx=5, ipady=5, padx = 5)
339
340 self.RTTRoot = DirSelectBox(frame)
341 self.RTTRoot.grid(row=row, column=1, sticky=E+W)
342 row = row + 1
343
344 label = ttk.Label (frame, relief = 'flat', text='Board Support Folder:')
345 label.grid(row=row, column=0,ipadx=5, ipady=5, padx = 5)
346
347 self.BSPRoot = DirSelectBox(frame)
348 self.BSPRoot.grid(row=row, column=1, sticky=E+W)
349 row = row + 1
350
351 label = ttk.Label (frame, relief='flat', text='Toolchain:')
352 label.grid(row=row, column=0,ipadx=5, ipady=5, sticky=E+W)
353 row = row + 1
354
355 separator = ttk.Separator(frame)
356 separator.grid(row = row, column = 0, columnspan = 2, sticky = E+W)
357 row = row + 1
358
359 self.compilers = StringVar()
360 self.compilers.set("GCC") # initialize
361
362 self.CompilersPath = {}
363
364 for text,compiler in COMPILER:
365 radiobutton = ttk.Radiobutton(frame, text=text, variable = self.compilers, value = compiler)
366 radiobutton.grid(row=row, column = 0, sticky = W, ipadx = 5, ipady = 5, padx = 20)
367
368 self.CompilersPath[compiler] = DirSelectBox(frame)
369 self.CompilersPath[compiler].grid(row=row, column=1, sticky=E+W)
370 row = row + 1
371
372 button = ttk.Button(frame, text='Save Setting', command = self.save_setting)
373 button.grid(row = row, column = 1, sticky = E)
374 row = row + 1
375
376 def prepare_build(self):
377 # get compiler

Callers 1

__init__Method · 0.95

Calls 1

DirSelectBoxClass · 0.85

Tested by

no test coverage detected