--
You received this message because you are subscribed to the Google Groups "BlazeLibs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blazelibs+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blazelibs/2ccfe605-7041-4463-8fef-539abfe9268e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It is working fine...The blank exe window appears but I guess that is used for displaying print statements..
thanks,
Aravind
em = Emulator(visible=False, timeout=30, app=None, args=["-model", "3279-2", "-charset", "spanish-euro"])
This forces py3270 to use the executable ws3270 which has no echo on the screen. Unfortunately, if the python program does not have console view Windows generates a unnecessary black screen,
if it's a problem, you can hide using win32com
def enum_callback(hwnd, results):
winlist.append((hwnd, win32gui.GetWindowText(hwnd)))
toplist = []
winlist = []
win32gui.EnumWindows(enum_callback, toplist)
winws3270 = [(hwnd) for hwnd, title in winlist if 'ws3270' in title.lower()]
if len(winws3270) > 0: win32gui.ShowWindow(winws3270[0], win32con.SW_HIDE)
The solution is not very elegant and I am always thinking about improving it but it works fine.
Regards
Josse