Help with GladeVcp panels

More
28 Aug 2016 16:51 #79602 by kagouraki
Hello,

I need some help with the glade vcp. I have attached the files. My problem is that if i run
python gcode.py
from terminal it shows my gui as expected. No error in the terminal. If i open gmoccapy and run in terminal
gladevcp -u gcode.py gcode.glade
it opens but there is no browser. and i have this error in terminal.
/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 ?
Attachments:

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

More
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]
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.
Attachments:
Last edit: 29 Aug 2016 10:16 by newbynobi.

Please Log in or Create an account to join the conversation.

More
30 Aug 2016 14:19 #79719 by kagouraki
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.

More
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

Please Log in or Create an account to join the conversation.

Moderators: HansU
Time to create page: 0.073 seconds
Powered by Kunena Forum