Recommend this page to a friend! |
All requests | > | Any idea of how to use glade xml with... | > | Request new recommendation | > | Featured requests | > | No recommendations |
by Karl Holz - 7 years ago (2016-07-24)
+3 | I'm looking to use Glade XML with PHP-GTK on Windows 10, the basic stuff works right and I can see the GUI. When I try to process the information on something like the GtkFileChooserButton I get nothing ... basically I'm getting annoyed with the sparse details on GladeXML and data processing with OOP. Are there any easy to use classes on GTK-PHP (PHP 5.5) that can let me build basic interfaces to load files as input, I had Excel OOXML files in mind to be used with my Excel2JSON class. |
1. by Manuel Lemos - 7 years ago (2016-07-24) Reply
It is curious that you are interested in PHP-GTK. Any particular reason why not using a browser based application and have it handling by PHP on the server side using the built-in Web server?
2. by Karl Holz - 7 years ago (2016-07-24) in reply to comment 1 by Manuel Lemos Comment
basicly I want it to be more of a front end for one of my classes for possible offline usage and direct file access. Something that takes an Excel file as input and outputs images or say a powerpoint doc into a Directory on the Desktop to be printed after review.
Also windows doesn't have a cool Automator tool like Apple does.
I'm just doing my research at the moment, seeing if anyone more experienced has any tips of PHP gui's -- it's easier to get basic php-gtk working on windows than Mac :$
3. by Manuel Lemos - 7 years ago (2016-07-25) in reply to comment 2 by Karl Holz Comment
I see. I have not heard much of PHP-GTK development. That is why I thought a solution based on a browser accessing the local server would be more interesting.
In the previous Lately in JavaScript podcast we commented about the Electron project. That is a project to build desktop applications around Chromium and Node.js. I don't know if it can integrate with PHP, but I think it may be possible.
4. by Axel Hahn - 7 years ago (2016-07-25) in reply to comment 3 by Manuel Lemos Comment
You try to create an hta application. These still work in Win10. This is like an html page where you can embed css, images to generate a nice gui. With jscript (IE) you can read the local filesystem, open dialoges for folder selection, execute commands too (because it runs locally).
basic function to run a command in Jscript
function RUN(cmdstr)
dim OBJ_shell, result
set OBJ_shell = CreateObject("WScript.Shell")
' result = OBJ_shell.Run(cmdstr,0,true)
on error resume next
cmdstr=Replace(cmdstr, "chr(34)", chr(34))
result = OBJ_shell.Run(cmdstr)
if (result="") then
alert "Error: " &vbcrlf& cmdstr
end if
RUN=result
end function
I think you can execute local php (if you locate the script and the interpreter is in the PATH).
Recommend package | |
|