Hi,
I use PyQt 3.8 non-commercial version in win32. I get a big question.
I Can't show PY variable in QT filedialog as initially parameter.
Code sample is following:
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~
fileName="test. avi"
def saveSomething(a String):
dl = QFileDialog.get SaveFileName(aS tring, "*.*", self, "FileDialog ")
or
dl = QFileDialog.get SaveFileName(QS tring(aString), "*.*",
self, "FileDialog ")
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~
these code can't show corrent string.
If I use string constant.
dl = QFileDialog.get SaveFileName("t est.avi", "*.*", self, "FileDialog ")
Dialog show it correctly.
Thanks.
Ulysses 4 3123
In article <43************ **************@ posting.google. com>, ulysses wrote: Hi,
I use PyQt 3.8 non-commercial version in win32. I get a big question. I Can't show PY variable in QT filedialog as initially parameter.
Code sample is following: ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~ fileName="test. avi"
def saveSomething(a String): dl = QFileDialog.get SaveFileName(aS tring, "*.*", self, "FileDialog ") or dl = QFileDialog.get SaveFileName(QS tring(aString), "*.*", self, "FileDialog ") ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~ these code can't show corrent string.
If I use string constant. dl = QFileDialog.get SaveFileName("t est.avi", "*.*", self, "FileDialog ")
Dialog show it correctly.
Maybe try:
dl = QFileDialog.get SaveFileName(st r(aString), "*.*", self, "FileDialog ")
> Maybe try: dl = QFileDialog.get SaveFileName(st r(aString), "*.*", self, "FileDialog ")
Thank you for you reply. I has try this code. str(aString). But it's still
can't work.
I has kill the question. code is following
strTemp=QString (' '+default)
dl = QFileDialog.get SaveFileName(st rTemp, "*.*", self, "FileDialog ")
Dialog show correctly. I read it from QT C++ document.
On Thursday 11 September 2003 5:14 pm, ulysses wrote: Hi,
I use PyQt 3.8 non-commercial version in win32. I get a big question. I Can't show PY variable in QT filedialog as initially parameter.
Code sample is following: ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~ fileName="test. avi"
def saveSomething(a String): dl = QFileDialog.get SaveFileName(aS tring, "*.*", self, "FileDialog ") or dl = QFileDialog.get SaveFileName(QS tring(aString), "*.*", self, "FileDialog ") ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~ these code can't show corrent string.
If I use string constant. dl = QFileDialog.get SaveFileName("t est.avi", "*.*", self, "FileDialog ")
Dialog show it correctly.
Thanks.
Ulysses
Have you got a complete (but small) example that demonstrate's the problem?
Phil
Phil Thompson <ph**@riverbank computing.co.uk > wrote in message news:<ma******* *************** ***********@pyt hon.org>... On Thursday 11 September 2003 5:14 pm, ulysses wrote: Hi,
I use PyQt 3.8 non-commercial version in win32. I get a big question. I Can't show PY variable in QT filedialog as initially parameter.
Code sample is following: ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~ fileName="test. avi"
def saveSomething(a String): dl = QFileDialog.get SaveFileName(aS tring, "*.*", self, "FileDialog ") or dl = QFileDialog.get SaveFileName(QS tring(aString), "*.*", self, "FileDialog ") ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~ these code can't show corrent string.
If I use string constant. dl = QFileDialog.get SaveFileName("t est.avi", "*.*", self, "FileDialog ")
Dialog show it correctly.
Thanks.
Ulysses
Have you got a complete (but small) example that demonstrate's the problem?
Phil
Above code is a example. I do a little application for free.
main form will arrive 1XXX line. So I can't post it all.
BTW: I can't show getExistingDire ctory Dialog in a python thread.
it's will halt whole program. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ulysses |
last post by:
Hi,
I use QT nc,PyQt NC 3.8 in Win32 platform. python 2.3.
I need show getExistingDirectory in my program. I catch a question.
When I show a Dialog in a python function.it's ok. exp:
def showDirectory:
dl=QFileDialog.getExistingDirectory('',None,
'get directory',
|
by: Srinath Avadhanula |
last post by:
Hello,
I wanted to take a look at the qtext module which has been advertised on
the PyQT overview page, but am unable to get it. How am I supposed to do
this?
I installed Python v2.3 from www.python.org (using the self-installing
executable), QT non-commercial edition 2.3.0 and then PyQT
non-commercial edition 3.8.0 using the self-installing executable
PyQT-win-nc-3.8.exe from riverbankcomputing.co.uk.
|
by: Sibylle Koczian |
last post by:
Still trying to learn PyQt from a book about several Python GUI
toolkits, I seem to learn first what doesn't work. The following small
script seems to work, but after closing the window I get the error
message "Fatal Python error: PyEval_RestoreThread: NULL tstate".
Without the line "self.app = app" the error goes away. So I suppose the
main window can't have a reference to the application class. Right?
Using the global variable qApp...
|
by: Chump Wad |
last post by:
I will now die. I am too ignorant to make it work.
10.2.setEventCB.py segfaults for me.
It is almost there, but it is not there. SoQt.init returns a string,
which I can't use as the parent widget of my PyQt derived class.
SoQt.show and mainLoop need a string as a parameter, so my PyQt derived
class can't go there.
|
by: Fabio |
last post by:
Hi all,
I'm about to write an application, and I'd like to use PyQt, but before
choosing this toolkit I would like to clarify some particular licensing
issues; if some user has already touched these, I would like to hear from
his experiences.
This app should be cross-platform, so, given qt licensing policies, I would
buy a commercial PyQt license and a commercial Qt license.
Could I license the application under the GPL for Gnu/Linux...
| |
by: ET |
last post by:
I don't know whats the problem, but after I added functions
to first verify, then relink linked tables if not found,
now I can't convert that database to MDE format.
I can split the database, but can't convert
part of the database with forms, reports, queries to MDE format.
Can somebody advice on this?
References, in the order, from the top:
|
by: Andy Baxter |
last post by:
Can anyone recommend a good online guide to using objects in javascript?
The book I bought (DHTML Utopia) suggests using objects to keep the code
clean and stop namespace clashes between different parts of the code, but
as far as I can see, the way objects work in javascript is quite awkward.
I had it working the way they suggest in the book, and it was going OK
until I wanted to call one object method from another - I couldn't find a...
|
by: Gabriel - BR |
last post by:
Hi,,,
Is possible disable the close button in KDE management window? Using
python+qt?
thanks
|
by: anders |
last post by:
I am writing a plugin for a piece of software in python, and I want to
start up a PyQt GUI in the plugin, without stalling the main thread
while the gui is running (later i will want to pass messages between
the main thread and the gui thread).
I'm new to pyqt, so I'm probably doing something very silly, but for
the moment I'm just trying to get the first pyqt tutorial example
running in a seperate thread:
----8<--------
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |