1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458
|
import gi
import const
import Filenames
import subprocess
from Common import ExpandDataObject, setup_expander,bind_expander,setup,bind1,add_tree_node, ExpandDataObject2,add_tree_node2,bind2,bind3,bind4,setMargin
gi.require_version("Gtk", "4.0")
from gi.repository import Gtk,GObject,Gio,Adw
Adw.init()
from Common import createSubTab, create_scrollbar
class DataObject(GObject.GObject):
def __init__(self, column1: str,column2: str,column3: str,column4: str,column5: str):
super(DataObject, self).__init__()
self.column1 = column1
self.column2 = column2
self.column3 = column3
self.column4 = column4
self.column4 = column5
def vdpauinfo(tab2):
def vdpauInformation():
fetch_vdpau_information_command = "cat %s | grep -E 'API|string' " %(Filenames.vdpauinfo_output_file)
fetch_Vdpau_information_process = subprocess.Popen(fetch_vdpau_information_command,shell=True,stdout=subprocess.PIPE,universal_newlines=True)
vdpauinfo_information = fetch_Vdpau_information_process.communicate()[0].splitlines()
for i,line in enumerate(vdpauinfo_information):
# vdpauinfoStore.append(None,[' '.join(line.split()[0:2]).strip('[]'),' '.join(line.split()[2:]).strip('[]'),setBackgroundColor(i)])
toprow = ExpandDataObject(' '.join(line.split()[0:2]).strip('[]'),' '.join(line.split()[2:]).strip('[]'))
vdpauinfoStore.append(toprow)
#iter = vdpauinfoStore.append(None,["Supported Codecs:",' ',const.BGCOLOR3])
iter = ExpandDataObject("Supported Codecs:",' ')
# vdpauinfoStore.append(iter)
fetch_vdpau_decoder_capabilities_command = "cat %s | awk '/Decoder capabilities:/{flag=1;next}/Output surface:/{flag=0}flag' | awk '/------.*/{flag=1;next}/Output surface:/{flag=0}flag' | awk '/./'" %(Filenames.vdpauinfo_output_file)
fetch_vdpau_decoder_capabilities_process = subprocess.Popen(fetch_vdpau_decoder_capabilities_command,shell=True,stdout=subprocess.PIPE,universal_newlines=True)
vdpau_decoder_capabilities = fetch_vdpau_decoder_capabilities_process.communicate()[0].splitlines()
i = 0
for line in vdpau_decoder_capabilities:
if "not" not in line:
iter2 = ExpandDataObject(line.split()[0].strip('\n')," ")
iter.children.append(iter2)
# vdpauinfoStore.append(iter,[line.split()[0].strip('\n')," ",setBackgroundColor(i)])
i = i + 1
vdpauinfoStore.append(iter)
# treeVdpauInfo.expand_all()
def decoderCapabilities():
fetch_vdpau_decoder_capabilities_command = "cat %s | awk '/Decoder capabilities:/{flag=1;next}/Output surface:/{flag=0}flag' | awk '/------.*/{flag=1;next}/Output surface:/{flag=0}flag' | awk '/./'" %(Filenames.vdpauinfo_output_file)
fetch_vdpau_decoder_capabilities_process = subprocess.Popen(fetch_vdpau_decoder_capabilities_command,shell=True,stdout=subprocess.PIPE,universal_newlines=True)
vdpau_decoder_capabilities = fetch_vdpau_decoder_capabilities_process.communicate()[0].splitlines()
for i,line in enumerate(vdpau_decoder_capabilities):
if "not" in line:
decoderStore.append(ExpandDataObject2(line.split()[0].strip('\n'),"not supported","not supported","not supported","not supported"))
else:
decoderStore.append(ExpandDataObject2(line.split()[0].strip('\n'),line.split()[1].strip('\n'),line.split()[2].strip('\n'),line.split()[3].strip('\n'),line.split()[4].strip('\n')))
def videoSurfaceLimits():
fetch_vdpau_surface_limits_command = "cat %s | awk '/Video surface:/{flag=1;next}/Decoder capabilities:/{flag=0}flag' | awk '/-------.*/{flag=1;next}/Bitmap surface:/{flag=0}flag' | awk '/./'" %(Filenames.vdpauinfo_output_file)
fetch_vdpau_surface_limits_process = subprocess.Popen(fetch_vdpau_surface_limits_command,shell=True,stdout=subprocess.PIPE,universal_newlines=True)
vdpau_surface_limits = fetch_vdpau_surface_limits_process.communicate()[0].splitlines()
toprow = ExpandDataObject2("Video Surface","","","","")
for i,line in enumerate(vdpau_surface_limits):
iter = ExpandDataObject2(line.split()[0].strip('\n'),line.split()[1].strip('\n'),line.split()[2].strip('\n'),(' '.join(line.split()[3:]).strip('[]')),"")
toprow.children.append(iter)
surfaceVideoStore.append(toprow)
fetch_vdpau_surface_output_limits_command = "cat %s | awk '/Output surface:/{flag=1;next}/Bitmap surface:/{flag=0}flag' | awk '/-------.*/{flag=1;next}/Bitmap surface:/{flag=0}flag' | awk '/./' " %(Filenames.vdpauinfo_output_file)
fetch_vdpau_surface_output_limits_process = subprocess.Popen(fetch_vdpau_surface_output_limits_command,shell=True,stdout=subprocess.PIPE,universal_newlines=True)
vdpau_surface_output_limits = fetch_vdpau_surface_output_limits_process.communicate()[0].splitlines()
toprow = ExpandDataObject2("Output Surface","","","","")
for i,line in enumerate(vdpau_surface_output_limits):
iter = ExpandDataObject2(line.split()[0].strip('\n'),line.split()[1].strip('\n'),line.split()[2],(' '.join(line.split()[4:]).strip('[]')),"")
toprow.children.append(iter)
surfaceVideoStore.append(toprow)
fetch_vdpau_surface_bitmap_limits_command = "cat %s | awk '/Bitmap surface:/{flag=1;next}/Video mixer:/{flag=0}flag' | awk '/-------.*/{flag=1;next}/Video mixer:/{flag=0}flag' | awk '/./' " %(Filenames.vdpauinfo_output_file)
fetch_vdpau_surface_bitmap_limits_process = subprocess.Popen(fetch_vdpau_surface_bitmap_limits_command,shell=True,stdout=subprocess.PIPE,universal_newlines=True)
vdpau_surface_bitmap_limits = fetch_vdpau_surface_bitmap_limits_process.communicate()[0].splitlines()
toprow = ExpandDataObject2("Bitmap Surface","","","","")
for i,line in enumerate(vdpau_surface_bitmap_limits):
iter = ExpandDataObject2(line.split()[0].strip('\n'),line.split()[1].strip('\n'),line.split()[2].strip('\n'),"","")
toprow.children.append(iter)
surfaceVideoStore.append(toprow)
def VideoMixerFeature():
fetch_vdpau_mixer_features_command = "cat %s | awk '/feature name/{flag=1;next}/parameter name.*/{flag=0}flag' | awk '/-------.*/{flag=1;next}/Output surface:/{flag=0}flag' | awk '/./' " %(Filenames.vdpauinfo_output_file)
fetch_vdpau_mixer_features_process = subprocess.Popen(fetch_vdpau_mixer_features_command,shell=True,stdout=subprocess.PIPE,universal_newlines=True)
vdpau_video_mixer_feature = fetch_vdpau_mixer_features_process.communicate()[0].splitlines()
toprow = ExpandDataObject2("Features","","","","")
for i,line in enumerate(vdpau_video_mixer_feature):
if 'y'in line:
text = "true"
fgcolor = const.COLOR1
else:
text = "false"
fgcolor = const.COLOR2
if "HIGH" in line:
iter = ExpandDataObject2((' '.join(line.split()[0:5])).strip('[]'),text,"","","")
toprow.children.append(iter)
else:
iter = ExpandDataObject2(line.split()[0].strip('\n'),text,"","","")
toprow.children.append(iter)
videoMixerFeatureStore.append(toprow)
fetch_vdpau_mixer_parameter_command = "cat %s | awk '/parameter name/{flag=1;next}/attribute name.*/{flag=0}flag' | awk '/-------.*/{flag=1;next}/Output surface:/{flag=0}flag' | awk '/./' " %(Filenames.vdpauinfo_output_file)
fetch_vdpau_mixer_parameter_process = subprocess.Popen(fetch_vdpau_mixer_parameter_command,shell=True,stdout=subprocess.PIPE,universal_newlines=True)
vdpau_video_mixer_parameters = fetch_vdpau_mixer_parameter_process.communicate()[0].splitlines()
toprow = ExpandDataObject2("Parameters","","","","")
for i,line in enumerate(vdpau_video_mixer_parameters):
if line.split()[1].strip('\n') == 'y':
text = "true"
fgcolor = const.COLOR1
else:
text = "false"
iter = ExpandDataObject2(line.split()[0].strip('\n'),text,"","","")
toprow.children.append(iter)
videoMixerFeatureStore.append(toprow)
fetch_vdpau_mixer_attribute_command = "cat %s | awk '/Video mixer:/{flag=1;next}/Output surface:/{flag=0}flag' | awk '/attribute name/{flag=1;next}/Output surface:/{flag=0}flag' | awk '/-------.*/{flag=1;next}/Output surface:/{flag=0}flag' | awk '/./' " %(Filenames.vdpauinfo_output_file)
fetch_vdpau_mixer_attribute_process = subprocess.Popen(fetch_vdpau_mixer_attribute_command,shell=True,stdout=subprocess.PIPE,universal_newlines=True)
vdpau_video_mixer_attribute = fetch_vdpau_mixer_attribute_process.communicate()[0].splitlines()
toprow = ExpandDataObject2("Attributes","","","","")
for i,line in enumerate(vdpau_video_mixer_attribute):
if line.split()[1].strip('\n') == 'y':
text = "true"
fgcolor = const.COLOR1
else:
text = "false"
iter = ExpandDataObject2(line.split()[0].strip('\n'),text,"","","")
toprow.children.append(iter)
videoMixerFeatureStore.append(toprow )
def _on_search_method_changed(search_entry,filterColumn):
filterColumn.changed(Gtk.FilterChange.DIFFERENT)
def _do_filter_decoder_view(item, filter_list_model):
search_text_widget = decoderSearchEntry.get_text()
return search_text_widget.upper() in item.data.upper()
split_view_container = Gtk.Box.new(Gtk.Orientation.VERTICAL, 0)
split_view_container.set_vexpand(True)
split_view_container.set_hexpand(True)
# Create a new NavigationSplitView
split_view = Adw.NavigationSplitView.new()
split_view.set_vexpand(True)
split_view.set_hexpand(True)
# Create the sidebar content using a Gtk.ListBox for tabs
sidebar_listbox = Gtk.ListBox.new()
sidebar_listbox.set_selection_mode(Gtk.SelectionMode.SINGLE)
sidebar_listbox.set_vexpand(True)
sidebar_listbox.add_css_class(css_class="boxed-list")
sidebar_listbox.add_css_class(css_class="sidebar")
# sidebar_listbox.add_css_class(css_class="frame")
# Set the show-separators property to False
sidebar_listbox.set_show_separators(True)
# Add the tabs to the sidebar ListBox
tabs = [
"VDPAU Information", "Decoder Capabilities", "Surface Limits", "Video Mixer"
]
content_stack = Gtk.Stack.new()
# Create the content pages for each tab and add them to the stack
for tab_name in tabs:
row = Gtk.ListBoxRow()
label = Gtk.Label.new(tab_name)
# Add padding to the label inside the row
label.set_margin_top(10)
label.set_margin_bottom(10)
row.set_child(label)
sidebar_listbox.append(row)
# Create a box for the content of this specific tab
content_box = Gtk.Box.new(Gtk.Orientation.VERTICAL, 10)
if tab_name == "VDPAU Information":
# ------- VDPAU information -------------------------------
vdpauinfoColumnView = Gtk.ColumnView()
vdpauinfoColumnView.props.show_row_separators = True
vdpauinfoColumnView.props.show_column_separators = False
factory_vdpau = Gtk.SignalListItemFactory()
factory_vdpau.connect("setup",setup_expander)
factory_vdpau.connect("bind",bind_expander)
factory_vdpau_value = Gtk.SignalListItemFactory()
factory_vdpau_value.connect("setup",setup)
factory_vdpau_value.connect("bind",bind1)
vdpauSelection = Gtk.SingleSelection()
vdpauinfoStore = Gio.ListStore.new(ExpandDataObject)
vdpauModel = Gtk.TreeListModel.new(vdpauinfoStore,False,True,add_tree_node)
vdpauSelection.set_model(vdpauModel)
vdpauinfoColumnView.set_model(vdpauSelection)
vdpauColumnLhs = Gtk.ColumnViewColumn.new("VDPAU Information",factory_vdpau)
vdpauColumnLhs.set_resizable(True)
vdpauColumnRhs = Gtk.ColumnViewColumn.new("Details",factory_vdpau_value)
vdpauColumnRhs.set_expand(True)
vdpauinfoColumnView.append_column(vdpauColumnLhs)
vdpauinfoColumnView.append_column(vdpauColumnRhs)
# vdpauinfoStore = Gtk.TreeStore(str,str,str)
# treeVdpauInfo = Gtk.TreeView.new_with_model(vdpauinfoStore)
# treeVdpauInfo.set_property("enable-grid-lines",1)
# setColumns(treeVdpauInfo,vdpauinfoTitle,300,0.0)
vdpauinfoScrollbar = create_scrollbar(vdpauinfoColumnView)
content_box.append(vdpauinfoScrollbar)
elif tab_name == "Decoder Capabilities":
# ------- Decoder Capabilities ----------------------------
decoderTab = Gtk.Box.new(Gtk.Orientation.VERTICAL, 0)
decoderInfoColumnView = Gtk.ColumnView()
decoderInfoColumnView.props.show_row_separators = True
decoderInfoColumnView.props.show_column_separators = False
factory_decoder = Gtk.SignalListItemFactory()
factory_decoder.connect("setup",setup_expander)
factory_decoder.connect("bind",bind_expander)
factory_decoder_value1 = Gtk.SignalListItemFactory()
factory_decoder_value1.connect("setup",setup)
factory_decoder_value1.connect("bind",bind1)
factory_decoder_value2 = Gtk.SignalListItemFactory()
factory_decoder_value2.connect("setup",setup)
factory_decoder_value2.connect("bind",bind2)
factory_decoder_value3 = Gtk.SignalListItemFactory()
factory_decoder_value3.connect("setup",setup)
factory_decoder_value3.connect("bind",bind3)
factory_decoder_value4 = Gtk.SignalListItemFactory()
factory_decoder_value4.connect("setup",setup)
factory_decoder_value4.connect("bind",bind4)
decoderSelection = Gtk.SingleSelection()
decoderStore = Gio.ListStore.new(ExpandDataObject2)
filterSortDecoderStore = Gtk.FilterListModel(model=decoderStore)
filter_decoder = Gtk.CustomFilter.new(_do_filter_decoder_view, filterSortDecoderStore)
filterSortDecoderStore.set_filter(filter_decoder)
vdpauModel = Gtk.TreeListModel.new(filterSortDecoderStore,False,True,add_tree_node2)
decoderSelection.set_model(vdpauModel)
decoderInfoColumnView.set_model(decoderSelection)
decoderColumnLhs = Gtk.ColumnViewColumn.new("Decoder name",factory_decoder)
decoderColumnLhs.set_resizable(True)
decoderColumnRhs1 = Gtk.ColumnViewColumn.new("Level",factory_decoder_value1)
decoderColumnRhs1.set_expand(True)
decoderColumnRhs2 = Gtk.ColumnViewColumn.new("Macroblocks",factory_decoder_value2)
decoderColumnRhs2.set_expand(True)
decoderColumnRhs3 = Gtk.ColumnViewColumn.new("Width",factory_decoder_value3)
decoderColumnRhs3.set_expand(True)
decoderColumnRhs4 = Gtk.ColumnViewColumn.new("Height",factory_decoder_value4)
decoderColumnRhs4.set_expand(True)
decoderInfoColumnView.append_column(decoderColumnLhs)
decoderInfoColumnView.append_column(decoderColumnRhs1)
decoderInfoColumnView.append_column(decoderColumnRhs2)
decoderInfoColumnView.append_column(decoderColumnRhs3)
decoderInfoColumnView.append_column(decoderColumnRhs4)
# decoderStore = Gtk.ListStore(str,str,str,str,str,str)
# treeDecoder = Gtk.TreeView.new_with_model(decoderStore)
# treeDecoder.set_property("enable-grid-lines",1)
# setColumns(treeDecoder, decoderTitle, 300, 0.0)
decoderSearchEntry = Gtk.SearchEntry()
setMargin(decoderSearchEntry,0,5,0)
decoderSearchEntry.set_property("placeholder_text","Type here to filter.....")
decoderSearchEntry.connect("search-changed", _on_search_method_changed,filter_decoder)
decoderScrollbar = create_scrollbar(decoderInfoColumnView)
decoderTab.append(decoderScrollbar)
decoderTab.append(decoderSearchEntry)
content_box.append(decoderTab)
elif tab_name == "Surface Limits":
# -------- Surface Limits -----------------------------------
vdpauSurfaceColumnView = Gtk.ColumnView()
vdpauSurfaceColumnView.props.show_row_separators = True
vdpauSurfaceColumnView.props.show_column_separators = False
factory_surface_limits = Gtk.SignalListItemFactory()
factory_surface_limits.connect("setup",setup_expander)
factory_surface_limits.connect("bind",bind_expander)
factory_surface_limits_value1 = Gtk.SignalListItemFactory()
factory_surface_limits_value1.connect("setup",setup)
factory_surface_limits_value1.connect("bind",bind1)
factory_surface_limits_value2 = Gtk.SignalListItemFactory()
factory_surface_limits_value2.connect("setup",setup)
factory_surface_limits_value2.connect("bind",bind2)
factory_surface_limits_value3 = Gtk.SignalListItemFactory()
factory_surface_limits_value3.connect("setup",setup)
factory_surface_limits_value3.connect("bind",bind3)
vdpauSurfaceSelection = Gtk.SingleSelection()
surfaceVideoStore = Gio.ListStore.new(ExpandDataObject2)
vdpauSurfaceModel = Gtk.TreeListModel.new(surfaceVideoStore,False,True,add_tree_node2)
vdpauSurfaceSelection.set_model(vdpauSurfaceModel)
vdpauSurfaceColumnView.set_model(vdpauSurfaceSelection)
vdpauSurfaceColumnLhs = Gtk.ColumnViewColumn.new("Suface",factory_surface_limits)
vdpauSurfaceColumnLhs.set_resizable(True)
vdpauSurfaceColumnLhs.set_expand(True)
vdpauSurfaceColumnRhs1 = Gtk.ColumnViewColumn.new("Width",factory_surface_limits_value1)
vdpauSurfaceColumnRhs1.set_expand(True)
vdpauSurfaceColumnRhs2 = Gtk.ColumnViewColumn.new("Height",factory_surface_limits_value2)
vdpauSurfaceColumnRhs2.set_expand(True)
vdpauSurfaceColumnRhs3 = Gtk.ColumnViewColumn.new("Types",factory_surface_limits_value3)
vdpauSurfaceColumnRhs3.set_expand(True)
vdpauSurfaceColumnView.append_column(vdpauSurfaceColumnLhs)
vdpauSurfaceColumnView.append_column(vdpauSurfaceColumnRhs1)
vdpauSurfaceColumnView.append_column(vdpauSurfaceColumnRhs2)
vdpauSurfaceColumnView.append_column(vdpauSurfaceColumnRhs3)
# surfaceVideoStore = Gtk.TreeStore(str,str,str,str,str)
# treeSurfaceVideoLimits = Gtk.TreeView.new_with_model(surfaceVideoStore)
# treeSurfaceVideoLimits.set_property("enable-grid-lines",1)
# setColumns(treeSurfaceVideoLimits,surfaceVideoTitle,300,0.0)
surfaceVideoScrollbar = create_scrollbar(vdpauSurfaceColumnView)
content_box.append(surfaceVideoScrollbar)
elif tab_name == "Video Mixer":
# -------- Video Mixer ---------------------------------------
videoMixerColumnView = Gtk.ColumnView()
videoMixerColumnView.props.show_row_separators = True
videoMixerColumnView.props.show_column_separators = False
factory_video_mixer = Gtk.SignalListItemFactory()
factory_video_mixer.connect("setup",setup_expander)
factory_video_mixer.connect("bind",bind_expander)
factory_video_mixer_value = Gtk.SignalListItemFactory()
factory_video_mixer_value.connect("setup",setup)
factory_video_mixer_value.connect("bind",bind1)
videoMixerSelection = Gtk.SingleSelection()
videoMixerFeatureStore = Gio.ListStore.new(ExpandDataObject2)
videoMixerModel = Gtk.TreeListModel.new(videoMixerFeatureStore,False,True,add_tree_node2)
videoMixerSelection.set_model(videoMixerModel)
videoMixerColumnView.set_model(videoMixerSelection)
videoMixerColumnLhs = Gtk.ColumnViewColumn.new("Name",factory_video_mixer)
videoMixerColumnLhs.set_resizable(True)
videoMixerColumnRhs1 = Gtk.ColumnViewColumn.new("Supported",factory_video_mixer_value)
videoMixerColumnRhs1.set_expand(True)
videoMixerColumnView.append_column(videoMixerColumnLhs)
videoMixerColumnView.append_column(videoMixerColumnRhs1)
videoMixerFeatureScrollbar = create_scrollbar(videoMixerColumnView)
content_box.append(videoMixerFeatureScrollbar)
content_stack.add_titled(content_box, tab_name.replace(" ", "-").lower(), tab_name)
sidebar_scrolled_window = Gtk.ScrolledWindow.new()
sidebar_scrolled_window.set_child(sidebar_listbox)
# Connect the listbox signal to change the stack page
def on_row_activated(listbox, row):
tab_label = row.get_child()
tab_name = tab_label.get_label()
# The name for the stack child is the tab name, with spaces replaced by dashes and lowercase
child_name = tab_name.replace(" ", "-").lower()
# Set the visible child of the stack using its name
content_stack.set_visible_child_name(child_name)
sidebar_listbox.connect("row-activated", on_row_activated)
sidebar_listbox.select_row(sidebar_listbox.get_row_at_index(0))
# content_stack.set_visible_child_name("System Information")
# Set a minimum width for the sidebar
# Create the Adw.NavigationPage wrappers for the sidebar and content
sidebar_page = Adw.NavigationPage.new(sidebar_scrolled_window, "Sidebar")
content_page = Adw.NavigationPage.new(content_stack, "Content")
# Set the sidebar and content for the split view using the new pages
split_view.set_sidebar(sidebar_page)
split_view.set_content(content_page)
# Add the split view to its new container
split_view_container.append(split_view)
decoderCapabilities()
videoSurfaceLimits()
VideoMixerFeature()
vdpauInformation()
tab2.append(split_view_container)
return tab2
|