2012-04-18 23:06:12 +08:00
|
|
|
from building import *
|
2012-11-26 10:42:52 +08:00
|
|
|
import os
|
2012-04-18 23:06:12 +08:00
|
|
|
|
|
|
|
'''
|
|
|
|
demo_view_dc_buffer.c
|
|
|
|
demo_fnview.c
|
|
|
|
demo_listview.c
|
|
|
|
demo_listview_icon.c
|
|
|
|
demo_panel_single.c
|
|
|
|
demo_view_box.c
|
|
|
|
demo_view_image.c
|
|
|
|
demo_view_module.c
|
|
|
|
'''
|
|
|
|
|
|
|
|
src = Split("""
|
|
|
|
demo_application.c
|
|
|
|
demo_view.c
|
2012-09-07 09:50:13 +08:00
|
|
|
demo_xml.c
|
2012-04-18 23:06:12 +08:00
|
|
|
demo_view_benchmark.c
|
|
|
|
demo_view_dc.c
|
|
|
|
demo_view_ttf.c
|
|
|
|
demo_view_dc_buffer.c
|
|
|
|
demo_view_animation.c
|
|
|
|
demo_view_buffer_animation.c
|
|
|
|
demo_view_instrument_panel.c
|
|
|
|
demo_view_window.c
|
|
|
|
demo_view_label.c
|
|
|
|
demo_view_button.c
|
|
|
|
demo_view_checkbox.c
|
|
|
|
demo_view_progressbar.c
|
|
|
|
demo_view_scrollbar.c
|
|
|
|
demo_view_radiobox.c
|
|
|
|
demo_view_textbox.c
|
|
|
|
demo_view_listbox.c
|
|
|
|
demo_view_menu.c
|
|
|
|
demo_view_listctrl.c
|
|
|
|
demo_view_combobox.c
|
|
|
|
demo_view_slider.c
|
|
|
|
demo_view_notebook.c
|
|
|
|
demo_view_mywidget.c
|
2012-07-20 20:37:56 +08:00
|
|
|
demo_view_box.c
|
2012-08-13 16:32:01 +08:00
|
|
|
demo_view_edit.c
|
2012-09-07 09:50:13 +08:00
|
|
|
demo_view_bmp.c
|
|
|
|
demo_plot.c
|
2012-04-18 23:06:12 +08:00
|
|
|
mywidget.c
|
|
|
|
""")
|
|
|
|
|
2012-11-26 10:42:52 +08:00
|
|
|
if GetDepend('RTGUI_USING_FONT_COMPACT'):
|
|
|
|
import stract_cjk as sf
|
|
|
|
fl1 = sf.get_font_lib('hz16')
|
|
|
|
fl2 = sf.get_font_lib('hz12')
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
for i in src:
|
|
|
|
fl1.push_file(open(os.path.join(cwd, i), 'r'))
|
|
|
|
fl2.push_file(open(os.path.join(cwd, i), 'r'))
|
2012-04-18 23:06:12 +08:00
|
|
|
|
|
|
|
group = DefineGroup('gui_examples', src, depend = ['RT_USING_RTGUI'])
|
|
|
|
|
|
|
|
Return('group')
|