RE: Qt with PyDev
Seen both, but do I need to install the binaries or add a link in Pydev to PySide source-code? Date: Tue, 4 Jan 2011 07:09:53 -0800 From: gher...@islandtraining.com To: python-list@python.org Subject: Re: Qt with PyDev On 01/04/2011 12:00 AM, RP Khare wrote: I installed Aptana PyDev plugin to Aptana Studio 3 Beta. I want to write my first GUI application using Python and I want to use Qt for it. How to integrate Qt into PyDev, or is there any other alternative IDE to work with Qt? element Font font-family font-size font-style font-variant font-weight letter-spacing line-height text-decoration text-align text-indent text-transform white-space word-spacing color Background bg-attachment bg-color bg-image bg-position bg-repeat Box width height border-top border-right border-bottom border-left margin padding max-height min-height max-width min-width outline-color outline-style outline-width Positioning position top bottom right left float display clear z-index List list-style-image list-style-type list-style-position Table vertical-align border-collapse border-spacing caption-side empty-cells table-layout Effects text-shadow -webkit-box-shadow border-radius Other overflow cursor visibility ... Rohit See either of these packages: PyQt: http://qt.nokia.com/products/ PySide: http://www.p
Attaching C++ libraries to Python app.
Is it possible to use C++ libraries within a Python application? I am planning to write an encryption program and want to use GnuPG C++ libraries.elementFontfont-familyfont-sizefont-stylefont-variantfont-weightletter-spacingline-heighttext-decorationtext-aligntext-indenttext-transformwhite-spaceword-spacingcolorBackgroundbg-attachmentbg-colorbg-imagebg-positionbg-repeatBoxwidthheightborder-topborder-rightborder-bottomborder-leftmarginpaddingmax-heightmin-heightmax-widthmin-widthoutline-coloroutline-styleoutline-widthPositioningpositiontopbottomrightleftfloatdisplayclearz-indexListlist-style-imagelist-style-typelist-style-positionTablevertical-alignborder-collapseborder-spacingcaption-sideempty-cellstable-layoutEffectstext-shadow-webkit-box-shadowborder-radiusOtheroverflowcursorvisibility ...Rohit. -- http://mail.python.org/mailman/listinfo/python-list
RE: Attaching C++ libraries to Python app.
I am just asking. In future I may need to import any C++ library, not a Crypto, but some other. Is it possible? > Date: Wed, 5 Jan 2011 22:44:15 +0100 > Subject: Re: Attaching C++ libraries to Python app. > From: stefan.sonnenb...@pythonmeister.com > To: passionate_program...@hotmail.com > CC: python-list@python.org > > You don't need to reinvent the wheel: > > http://www.dlitz.net/software/pycrypto/ > > Am Mi, 5.01.2011, 22:21 schrieb Rohit Coder: > > > > Is it possible to use C++ libraries within a Python application? I am > > planning to write an encryption program and want to use GnuPG C++ > > libraries.elementFontfont-familyfont-sizefont-stylefont-variantfont-weightletter-spacingline-heighttext-decorationtext-aligntext-indenttext-transformwhite-spaceword-spacingcolorBackgroundbg-attachmentbg-colorbg-imagebg-positionbg-repeatBoxwidthheightborder-topborder-rightborder-bottomborder-leftmarginpaddingmax-heightmin-heightmax-widthmin-widthoutline-coloroutline-styleoutline-widthPositioningpositiontopbottomrightleftfloatdisplayclearz-indexListlist-style-imagelist-style-typelist-style-positionTablevertical-alignborder-collapseborder-spacingcaption-sideempty-cellstable-layoutEffectstext-shadow-webkit-box-shadowborder-radiusOtheroverflowcursorvisibility > > ...Rohit. > > -- > > http://mail.python.org/mailman/listinfo/python-list > > > > > -- > MfG, > > Stefan Sonnenberg-Carstens > > IT Architect elementFontfont-familyfont-sizefont-stylefont-variantfont-weightletter-spacingline-heighttext-decorationtext-aligntext-indenttext-transformwhite-spaceword-spacingcolorBackgroundbg-attachmentbg-colorbg-imagebg-positionbg-repeatBoxwidthheightborder-topborder-rightborder-bottomborder-leftmarginpaddingmax-heightmin-heightmax-widthmin-widthoutline-coloroutline-styleoutline-widthPositioningpositiontopbottomrightleftfloatdisplayclearz-indexListlist-style-imagelist-style-typelist-style-positionTablevertical-alignborder-collapseborder-spacingcaption-sideempty-cellstable-layoutEffectstext-shadow-webkit-box-shadowborder-radiusOtheroverflowcursorvisibility -- http://mail.python.org/mailman/listinfo/python-list
How suitable is Python to write system utilities?
Is Python suitable to write low-level system utilities like Defrag, Malware Removal Tools and Drivers? -- http://mail.python.org/mailman/listinfo/python-list
Working with PyQt and Pydev
I installed the PyDev plugin into Aptana Stdui 3 Beta. Someone suggested me to use PyQt for Python GUI app, and so I downloaded and installed PyQt. But when I open Aptana Studio, I could see a new menu added with the name "PyDev", but there is nothing for PyQt. In the Windows Start Meny item list, I could see a folder named PyQt and when I open it, there are few tools like Designer. When Designer is run, it opens Qt IDE for designing Forms like Visual Studio and the files have the extension .ui.I want to know how to integrate PyQt and PyDev. Do I need to use them separately by adding the .ui files to PyDev and then adding Python core code for functionality? ...Rohit.elementFontfont-familyfont-sizefont-stylefont-variantfont-weightletter-spacingline-heighttext-decorationtext-aligntext-indenttext-transformwhite-spaceword-spacingcolorBackgroundbg-attachmentbg-colorbg-imagebg-positionbg-repeatBoxwidthheightborder-topborder-rightborder-bottomborder-leftmarginpaddingmax-heightmin-heightmax-widthmin-widthoutline-coloroutline-styleoutline-widthPositioningpositiontopbottomrightleftfloatdisplayclearz-indexListlist-style-imagelist-style-typelist-style-positionTablevertical-alignborder-collapseborder-spacingcaption-sideempty-cellstable-layoutEffectstext-shadow-webkit-box-shadowborder-radiusOtheroverflowcursorvisibility -- http://mail.python.org/mailman/listinfo/python-list
Create a class to position a window on the screen.
Hi,elementFontfont-familyfont-sizefont-stylefont-variantfont-weightletter-spacingline-heighttext-decorationtext-aligntext-indenttext-transformwhite-spaceword-spacingcolorBackgroundbg-attachmentbg-colorbg-imagebg-positionbg-repeatBoxwidthheightborder-topborder-rightborder-bottomborder-leftmarginpaddingmax-heightmin-heightmax-widthmin-widthoutline-coloroutline-styleoutline-widthPositioningpositiontopbottomrightleftfloatdisplayclearz-indexListlist-style-imagelist-style-typelist-style-positionTablevertical-alignborder-collapseborder-spacingcaption-sideempty-cellstable-layoutEffectstext-shadow-webkit-box-shadowborder-radiusOtheroverflowcursorvisibility I am new to Python and this is my fist Python class. I am using PyQt4 framework on Windows 7. I don't know whether the code below is correctly written or not. I want to modify it further as: 1. In the arguments, I want to pass the name of another opened Window (.py) on the screen. 2. I want to pass the x-coord., y-coord. and the name of the window to position on the screen. How to modify the code to fulfill these requirements? **Attempted Code** class PositionWindow:def __init__(self, xCoord, yCoord, windowName, parent = None): self.x = xCoord self.y = yCoord self.wName = windowName;def center(self):screen = QtGui.QDesktopWidget().screenGeometry()size = self.geometry() self.move((screen.width()-size.width())/2, (screen.height()-size.height())/2) ...Rohit. -- http://mail.python.org/mailman/listinfo/python-list
Centering a window
I am using PyQt4 for GUI apps. I created a class that contains a function to center any window (Form) whose name is passed to this class. I have two questions: How to modify the below given code to center the window whose name we passed as an argument.How to pass window name to this class from another file that imports this class? = CODE BLOCK STARTS HERE ===from PyQt4 import QtGui class PositionWindow:def __init__(self, xCoord, yCoord, windowName, parent = None): self.x = xCoord self.y = yCoord self.wName = windowName;def center(self):screen = QtGui.QDesktopWidget().screenGeometry()size = self.geometry() self.move((screen.width()-size.width())/2, (screen.height()-size.height())/2)= CODE BLOCK ENDS HERE === Rohit K.elementFontfont-familyfont-sizefont-stylefont-variantfont-weightletter-spacingline-heighttext-decorationtext-aligntext-indenttext-transformwhite-spaceword-spacingcolorBackgroundbg-attachmentbg-colorbg-imagebg-positionbg-repeatBoxwidthheightborder-topborder-rightborder-bottomborder-leftmarginpaddingmax-heightmin-heightmax-widthmin-widthoutline-coloroutline-styleoutline-widthPositioningpositiontopbottomrightleftfloatdisplayclearz-indexListlist-style-imagelist-style-typelist-style-positionTablevertical-alignborder-collapseborder-spacingcaption-sideempty-cellstable-layoutEffectstext-shadow-webkit-box-shadowborder-radiusOtheroverflowcursorvisibility -- http://mail.python.org/mailman/listinfo/python-list