Probably many options. I'm a Linux user (currently Fedora 31, Harbour 3.2, gcc, Python 3). I've had success splitting up terminal applications into two parts:
1. Using glade and Python3 to develop a GUI front end, which calls....
2. A Harbour database "server" which does all the database heavy lifting
Item #2 can be based on the original Harbour terminal application code. Item #1 will be new. Good luck with the transition!
Como ?
* SAMPLE.PRG Template Harbour 3.2 program callable from anywhere
* sample compile: hbmk2 -static hbnf.hbc xhb.hbc sample.prg
*
* Sample call from Python3: >>> import subprocess
* >>> mret = subprocess.check_output(["./sample", "open"])
*
* code as shown assumes one text parameter
* the do case statement can act on any number of predefined parameters
* and multiple parameters per call if you so choose
PROCEDURE MAIN(...)
PUBLIC mparms && passed parameters
mparms := HB_AParams() && array of parms
mparm_count := len( mparms )
msel = mparms[1] && get first parameter
do case
case msel = "open"
* code for open here
case msel = "foobar"
* code for foobar here
otherwise
* ...
endcase
RETURN
** End **
Não vi o código Python. Deve ser a parte das telas. Será DBF ?
Saudações,
Itamar M. Lins Jr.