Console widget wxpython - windows

I have forked an interpreter written in C (Picoc), and I want to create a GUI for that interpreter.
The GUI should have a textarea (TextView in pygtk) and a console in the bottom, that will show the output of the script that you just written, and also prompt the input if its needed.
I do create a PyGTK GUI that has VTE Console widget, but the problem is that i want to make PyGTK cross-platform, i'm using GTKSourceView and as i was looking on Google, its no so easy to port GTK to windows, so, i research about WxPython (which is the same window Manager of Code::Blocks), but the question is:
It DO exists a Console Widget on wxPython?
and most important, how portable it is? can i port it to windows easier than GTK?

It was my understanding that PyGTK is cross-platform. It just doesn't use native widgets. I've certainly used an application written in it on Windows anyway. Admittedly, I've never had much luck actually using it on Windows.
As for wxPython, no it doesn't have a console widget. You would have to use Python's subprocess to launch a console window and communicate with it. On the other hand, wxPython is quite portable. I've seen screenshots of apps on all 3 major platforms and I've written a couple of mine to work on Windows and Ubuntu.

Related

c++ hide terminal with GTKMM gui apps

I've been looking around on the cplusplus forum and here on stackoverflow, but I have not been able to find an answer. All I find is Windows stuff or people working with IDE'S that do the work for them.
I am creating an application with c++ and GTKMM and nothing else, I just have a texteditor and a compiler that I control with my terminal (I adress this because a lot of people always talk about IDE'S and stuff) on UNIX based computers.
When I run my application (./application) I always see my terminal along with my gui application and I would like to hide the terminal. How would I achieve this?
Thanks in prior :)
So I found out it differs from operation system. I've written out what I've found on my website, so check it out if you want to create a mac application.

Python - pythondiologue vs. tkinker vs. wxPython vs. pyQt

I made a really simple, pseudo GUI using pythondialogue (its a wrapper for whiptail for bash), I need it to be cross platform between linux and Mac OSX. The main issue is its really hard to find information on pythondialogue, the only documentation seems to be on their own site. I would just use whiptail, but I'm learning python so using this to hone my python skills.
What I like about pythondialogue (and whiptail) is that its not really a GUI, just a dialogue inside the CLI, so it can used purely through the command line such as if you SSH to the computer you want to run it on. Can tkinter do this too?
Either way, a big thing I'm wondering is what benefits tkinter would provide over regular pythondialogue. Obviously the difference is it lets you create proper GUI applications, but would it be wisest to only create a GUI application in cases where its absolutely necessary?
tkinter sounds like the easiest way to code GUIs in python. What disadvantages does it have to PyQt or wxPython. I wan't to start developing mobile apps as soon as possible and I see iOS and android apps can be written using python and Qt can be used to write both Android and iOS apps. So with this in mind, would learning PyQt mean I would also be developing the skills I'll need to create iOS and android apps? If so, this is most definitely what I'm going to do.
Learning PyQt will definitely help you learn to create IOS and Android apps. Even more, PyQt comes with QtDesinger which is a visual editor for creating apps with minimal coding. Tkinter in my perspective is for very light GUI programming. If you feel like you want to make money of these apps, I would highly advise you to check out Kivy.

GNOME/Vala application to run on Windows

I want to port my C# WinForms application to be usable both with Windows and Linux. I have some experience with Java and more experience with Python but I don't really like the first and I'm concerned with the second (I mean the obfuscation, need to install Python on the target PC, etc.) so I've chosen to use Vala and GTK3 toolkit... it is created mainly for making GNOME applications but I've read that it's multiplatform and is compiled fully to C also with all the dependences needed for running the software - but is it right? I mean: would I meet any limitations while creating my application on Linux? I don't want to finish it and then to discover it can't be run on Windows because I've used some GNOME library...
There are a lot of GTK applications that currently work on Windows with no problem.
For example:
GIMP (raster graphics tool - the application for which GTK was built initially)
Inkscape (vector graphics tool)
Geany (Text editor)
Pidgin
Vala apps will work anywhere a GTK apps will. Can't name a Vala app i've seen running on windows but i'll take an interest in this and get back to you.
By the way there are two (maybe several) approaches to writing the app in Vala/GTK, for example including the entire GTK library into the app or not. Geany offers 2 different binary installers meant to allow you to choose if you already have GTK on your windows download a lighter geany-only instaler, if not download the full installer which incorporates its version of GTK.
Here's a site and a tool that will help you with configuring your vala compiler to output windows executables.
I'm not sure if you can use all the tools that Vala needs on Windows. You may have to develop on a linux box.

How does minigtk.dll in XChat for Windows work?

I used to write some pygtk apps for Windows, but the GTK for Windows library is always pain to maintain. I discovered XChat for Windows using a 472KB minigtk.dll.
Can I too use this as standard gtk alternative for pygtk and others?
minigtk is primarily a modified form of gtk with the parts of gtk needed necessarily run XChat, however the use of the minigtk source is heavily crippled as Zed doesn't want other people to use it.

Keyboard and mouse interaction on Linux

I recently came across a Windows library called AHK that gives me great control to interact with applications.
Is there an equivalent in the Linux world?
There are several ports of autohotkey to linux in progress.
Here is mine: AutoHotkey using winelibsource: ahkx.git
autohotkey forum
Also, you can checkout IronAhk, autokey, and xdotool
There's nothing quite as awesome as AutoHotkey for Linux unfortunately. However a program called xbindkeys will do a lot of the keyboard bindings that you can do in AutoHotkey.
I don't think there is an equivalent to AHK in the Linux world. You might be able to get it to run with Wine, and if you were up to the challenge you could port it since the c++ source is availiable.
The thing Autohotkey does so well in Windows is work with the GUI as well as the system itself. I haven't found anything close to it in Linux. There are hotkey apps and apps that do text-replacement but nothing like Autohotkey on Windows.
I can't figure out if IronAHK is still in Alpha or it's abandoned altogether. Haven't heard much of anything lately. Autokey is just text-replacement if I recall correctly.
You can run Autohotkey in Wine but it loses the ability to manipulate the GUI in that environment and only can interact with other programs running in Wine as far as I know.
I would certainly look at Gnome-Do on which functions much like Quicksilver on the Mac. Fantastic launcher and more for Linux.

Resources