Help with GladeVcp panels
28 Aug 2016 16:51 #79602
by kagouraki
Help with GladeVcp panels was created by kagouraki
Hello,
I need some help with the glade vcp. I have attached the files. My problem is that if i runfrom terminal it shows my gui as expected. No error in the terminal. If i open gmoccapy and run in terminalit opens but there is no browser. and i have this error in terminal.
it seems somehow that it dont load the python file along with the glade file.
Do i overlook something ?
I need some help with the glade vcp. I have attached the files. My problem is that if i run
python gcode.py
gladevcp -u gcode.py gcode.glade
/usr/bin/gladevcp:212: RuntimeWarning: missing handler 'on_window1_destroy'
builder.connect_signals(handlers)
it seems somehow that it dont load the python file along with the glade file.
Do i overlook something ?
Please Log in or Create an account to join the conversation.
29 Aug 2016 08:57 #79636
by newbynobi
Replied by newbynobi on topic Help with GladeVcp panels
I tried for about an hour,
I give up for now.
I will have to check more in Detail.
Norbert
I give up for now.
I will have to check more in Detail.
Norbert
Please Log in or Create an account to join the conversation.
29 Aug 2016 10:05 - 29 Aug 2016 10:16 #79639
by newbynobi
Replied by newbynobi on topic Help with GladeVcp panels
Could not beleave it does not work, so here is the solution:
You will have to adapt that one to your needs.
The problem was, that you did not pass through the handlers with get_handlers()
and WebKit is a scrolled window and can not be embedded in a scrolled window.
to embedd it in gmoccapy, just add to [DISPLAY]
Norbert
P.S. You need to rename the txt file to py.
You will have to adapt that one to your needs.
The problem was, that you did not pass through the handlers with get_handlers()
and WebKit is a scrolled window and can not be embedded in a scrolled window.
to embedd it in gmoccapy, just add to [DISPLAY]
EMBED_TAB_NAME = WEB
EMBED_TAB_LOCATION = ntb_user_tabs
EMBED_TAB_COMMAND = gladevcp -x {XID} -u g_code.py g_code.glade
Norbert
P.S. You need to rename the txt file to py.
Last edit: 29 Aug 2016 10:16 by newbynobi.
Please Log in or Create an account to join the conversation.
30 Aug 2016 14:19 #79719
by kagouraki
This is far the best sample i have. Thank you very much Norbert !
Giorgos
Replied by kagouraki on topic Help with GladeVcp panels
Could not beleave it does not work, so here is the solution:
You will have to adapt that one to your needs.
The problem was, that you did not pass through the handlers with get_handlers()
and WebKit is a scrolled window and can not be embedded in a scrolled window.
to embedd it in gmoccapy, just add to [DISPLAY]EMBED_TAB_NAME = WEB EMBED_TAB_LOCATION = ntb_user_tabs EMBED_TAB_COMMAND = gladevcp -x {XID} -u g_code.py g_code.glade
Norbert
P.S. You need to rename the txt file to py.
This is far the best sample i have. Thank you very much Norbert !
Giorgos
Please Log in or Create an account to join the conversation.
30 Aug 2016 14:36 #79720
by kagouraki
Replied by kagouraki on topic Help with GladeVcp panels
And this is the ready one. Maybe it will be useful to someone.
The only thing that must be done is to change the highlighting of the items found from search. It is not clearly seen but i dont know how to change this. If someone does he can help.
You can import it to gmoccapy by adding the lines that Norbert said.
P.s. you need to change the paths for the html to be found from the python script.
Giorgos
You can download here. I cant upload here, it says too large file
Link: This is a link
The only thing that must be done is to change the highlighting of the items found from search. It is not clearly seen but i dont know how to change this. If someone does he can help.
You can import it to gmoccapy by adding the lines that Norbert said.
P.s. you need to change the paths for the html to be found from the python script.
Giorgos
You can download here. I cant upload here, it says too large file
Link: This is a link
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.122 seconds