Skip to content

Commit 22eb231

Browse files
authored
Create main.py
1 parent 48b2879 commit 22eb231

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

main.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import xbmc
2+
import xbmcgui
3+
import xbmcplugin
4+
import sys
5+
import os
6+
7+
# Get the plugin handle
8+
plugin_handle = int(sys.argv[1])
9+
10+
def show_search_dialog():
11+
# Load the XML file
12+
dialog_path = os.path.join(os.path.dirname(__file__), 'resources', 'lib', 'search.xml')
13+
# Display a simple dialog for demonstration
14+
xbmcgui.Dialog().ok("Search Addon", "This is where the search dialog would be displayed.")
15+
# You can use xbmcgui.WindowXML to load and display the XML dialog if needed
16+
17+
def main():
18+
show_search_dialog()
19+
20+
if __name__ == "__main__":
21+
main()

0 commit comments

Comments
 (0)