can I export ui element from ui software to kivy and tkinter?
I did not try but I want to learn that before I dive into tkinter more and more.
Related
Im not able to disable this icon in QT5 window. Present window is designed in QT5 community designer. Any help will be appreciated.
Thank you
I am currently learning python and tkinter.
I was wondering how to add a button to the title bar in the "mac osx style". I found a simple picture example:
The screenshot shows an app written in python using tkinter.
Can it be available for linux systems ?
Thanks !
That application uses an open source extension. See http://opensource.codebykevin.com/native.html
I'm developing a program in python with a gui in pyqt4.
Now i have some porblem with the design of my buttons.
They have some style like windows 98 and i don't like that.
I have change my theme of my raspberry but nothing changed in my python application.
The theme changed my raspberry but not my application.
I use LXDE on my raspberry.
Do have anybody some solution?
Thanks,
You can change style of the Qt Application using one of the built in styles from Qt, for example you can use:
app.setStyle('plastique')
There are QWindowsStyle, QPlastiqueStyle, QCleanlooksStyle, QGtkStyle, QMotifStyle, QCDEStyle...
or you can use QSS (Qt Style Sheets) to theme your application, docs are here: http://qt-project.org/doc/qt-4.8/stylesheet.html
I have a PyGTK application, and it works fine in Gnome, but under Unity (ubuntu 10.10+) the global menu bar doesn't work - the menus are not displayed in the application window or the top bar. Is there a way to force the menu to either skip the global menu bar or display in it?
Edit:
Minimal sample added.
#! /usr/bin/python
import GUI
from GUI import Window
app = GUI.Application()
window = Window()
window.show()
app.run()
I had similar problems with simple programs created using pygtk. I believe the situation is:
pygtk works with gtk2.x
Unity uses gtk3
pygtk does not work with gtk3
python-gobject is the gtk3 equivalent of pygtk
You have an extra layer of complexity since you're using pyGUI. Most likely, pyGUI uses pygtk, which will not work with GTK3 / Unity. You can either persuade the people at pyGUI to release a GTK3-compatible version, or re-write your app from scratch using python-gobject.
I have PyQT v.4.8.8 installed.When I draw layouts and I want to view the code , it comes with error that is unable to launch uic as in snapshot:
I can compile the .ui files manually in cmdLine. But I dont know where to put the code for slot,methods ,signals.
1- Where should I set the settings for finding uic to compile ui? My installation does not have pyuic4.
2 - Where can I define my own slots/methods and functoins signatures ? (receiver object,sender) I can see the Edit signals/slots in edit menu but that only shows standard signals/slots.Doesn't have options to define yours.
As the name says, the Qt designer is for interface design only. You cannot use it to write the code for the actual application logic. For this, you'll need a normal Python editor. The exact details on how to use designer files in Python are explained in PyQt reference guide, Using Qt Designer.
Btw, uic is not for PyQt, but for compiling user interfaces into C++. To compile user interfaces to Python, you need to use pyuic4. This tool cannot be run from the designer, you need to run it manually. But it is recommended to load the user interface dynamically at runtime using the PyQt4.uic modules as explained in the reference guide.
I found this tutorial for PyQt4 explaining how to add your own slots in Qt4.Very informative.