473,657 Members | 2,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

file open dialog from within PythonWin

Hi,

I want to open a file seach dialog from within my python script which
I run from within PythonWin. I also have the wxPython package
installed.

How might I do this?

Thanks,

Aine

Oct 2 '07 #1
2 2194
On Oct 2, 7:56 am, aine_ca...@yaho o.com wrote:
Hi,

I want to open a file seach dialog from within my python script which
I run from within PythonWin. I also have the wxPython package
installed.

How might I do this?

Thanks,

Aine
Aine,

I recommend downloading the wxPython Demo as it shows how to do most
common tasks and a lot of other cool things as well. It includes code
for common dialogs, such as the FileDialog, which is what I think you
want. The man page for this widget is below:

http://www.wxpython.org/docs/api/wx....log-class.html

You can find the Demo here: http://www.wxpython.org/download.php

Mike

Oct 2 '07 #2
On Oct 2, 7:56 am, aine_ca...@yaho o.com wrote:
Hi,

I want to open a file seach dialog from within my python script which
I run from within PythonWin. I also have the wxPython package
installed.

How might I do this?

Thanks,

Aine
Oh yeah. You might find this helpful too:

http://wiki.wxpython.org/Getting_Started

Mike

Oct 2 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2186
by: Henrik Weber | last post by:
Hi. I have tried to add pychecker as an extension to pythonwin. Now I can have pychecker check the source file that is currently open in the editor with a single keypress. If someone is interested, here is how to do it: Create an empty file in your <pythondir>\Lib\site-packages\Pythonwin\pywin directory. Give it a name with .cfg as extension.
5
4899
by: Fred | last post by:
Hi, I'd like to turn a command-line script into a Windows GUI app using the native widgets so as to reduce the size of the binary (ie. no QT, wxWidgets, et al.) I came up with the following list of tools to access the Win32 API: - PythonWin (MFC) http://www.python.org/windows/pythonwin/ - ctypes http://starship.python.net/crew/theller/ctypes/
4
2599
by: Rob | last post by:
I have an Access application that allows users to open up certain files from within Access (.doc files with automation, .pdf's with a pdf viewing form). Other formats, we want to use Internet Explorer to show, using a plug-in). THis works fine as long as they have the plug-in installed. If they don't have the plug-in, when I try to open the file with IE, it gives the old "Would you like to OPEN this file or SAVE it to disk?" and it...
14
3762
by: Simon Abolnar | last post by:
I would like to know how to open child form from dialog form. Thanks for help! Simon
17
8018
by: Peter Duniho | last post by:
I searched using Google, on the web and in the newsgroups, and found nothing on this topic. Hopefully that means I just don't understand what I'm supposed to be doing here. :) The problem: I am trying to use the SaveFileDialog class to get a filename, which is subsequently opened for writing (write access, read sharing, but using read/write sharing doesn't make the problem go away anyway). Sometimes, on the statement where I...
12
2014
by: psbasha | last post by:
Hi, I have created a Simple Dialog with ComboBox and Radio buttons.When I execute my UI source code.I am able to see the dialog .When I Close the Dialog,I am not able to edit the source code for the dialog.I have to go to the task manager and kill the PythonWin.exe and restart the PythonWin and work on the UI modifications. Whether anybody has faced the similar problem,If so ,your help will be really appreciated Thanks PSB
0
336
by: =?Utf-8?B?RmlsZSBEb3dubG9hZCBQcm9ibGVt?= | last post by:
The File Download Dialog Box just disappears when either the Open or Save button is clicked on the Dialog Box, after I let the File Download Dialog Box stay there for more than three minutes. The File Download works fine if I clicked the Open or Save button within three minutes of the Dialog Box showed up. I'd like to have the Dialog Box works, say up to 20 minutes. I tried the following code, but it doesn't work.
3
5816
by: ArmageddonAsh | last post by:
I'm trying to make an application that will allow the user to enter data into a flexgrid (that's done) and then save the data from that flexgrid into a CSV file but even though the file is made none of the data from the flexgrid goes into the CSV file and so I have a couple of questions. 1, How do I make the application load the data from a specific CSV file? 2, How do I make it so that the user is able to add information to the data and...
3
2422
tdw
by: tdw | last post by:
I have a working hyperlink field in a table, and it's form. I also have a working File Picker Dialog: FileDialog(msoFileDialogFilePicker), being used to create the hyperlink. What I need to do, and can't figure out how, is to have the dialog pick a folder, not a file within it. I need the hyperlink to open the folder so the user can then select a file within it to open. Right now, when navigating in the file picker dialog, clicking on the...
0
8310
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,...
0
8732
jinu1996
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...
1
8503
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,...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6166
isladogs
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...
0
5632
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();...
0
4155
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...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.