ANN: BalloonTip Control For wxPython ;-)

Hello NG,

the Andrea nightmare is back :wink:

Hi Andrea,
How about Office Xp style menus?

Malcolm

Mhm... I don't understand here. I have XP at home, but probably I didn't
pay attention to these "menu styles"... how should they look like?

Regarding the statictext control that wraps, I would be interested in
seeing what Chris has done regarding FloatCanvas... If it can be improved
in some way, I can try it, though I imagine there would be some work to do
with DC/Paint and friends, with which I am not really an expert...

Andrea.

路路路

_______________________________________________
Andrea Gavana
Reservoir Engineer
MOGI ? Reservoir Characterization and Modeling Dept.
ENI S.p.A. ? Exploration & Production Division
Via Emilia, 1 ? 20097 San Donato Milanese (MI) ? Italy
Phone: +39 02 520 62972
Fax: +39 02 520 61824
E-mail: andrea.gavana@agip.it
Updated Internet Site: http://xoomer.virgilio.it/infinity77/
____________________________________________________

Eni S.p.A.
Sede legale in Roma,
Piazzale Enrico Mattei 1, 00144 Roma
Tel. centralino: +39 06598.21
www.eni.it
Capitale sociale 聙 4.002.934.326 i.v.
Registro Imprese di Roma,
Codice Fiscale 00484960588
Part. IVA 00905811006
R.E.A. Roma n. 756453

Mhm... I don't understand here. I have XP at home, but probably I didn't
pay attention to these "menu styles"... how should they look like?

Hi,

although i am still beginning with wxPython, i am starting to see its potential. I am also seeking a GUI that is similar to certain applications out there. These applications look and feel better and more professional than the rest of the normal windows applications.

MS Office is a good example for this in that it has another visual representation of the menus. Instead of a simple menu which opens when you click on the word, it has a more of panel which opens up instead of a grey tab. Each command has an icon assigned in front of it, which is also divided by a spacer. Open MS Word, Excel or any other Office application and check the file menu. You will see the command words to the right, and left a grey bar with a leading icon before the command.

Or see http://www.smartftp.com/img/screenshot.xp.menu.gif. This has a similar aspect. I think it is called "Windowx XP menus".

I am also after the so-called "toolkits" (is that the right word?):
http://www.mapilab.com/outlook/mail_merge/mail_merge_toolkit.png

They usually sit to the right of the screen (e.g. in word again).

I feel llike these would be terrific extensions to wxPython,

Christophe Leske

Hi,

Questions don't get more basic than this I'm afraid, but after installing wxPython I did not see any icons created in the start menu.. Also searched fora wxpython.exe but .. nothing.

So how does one start this up? All the 'getting started' guides seem to assume that you've been able to open it up.. :frowning:

I did follow the instructions and installed Python in C:\Python24

Cheers,
Chanchao

I assume that you have a MS-Windows System.

Did you install the demo?

Harald St眉rzebecher

路路路

2005/7/1, Chanchao <custom@freenet.de>:

Hi,

Questions don't get more basic than this I'm afraid, but after
installing wxPython I did not see any icons created in the start menu..
Also searched fora wxpython.exe but .. nothing.

So how does one start this up? All the 'getting started' guides seem to
assume that you've been able to open it up.. :frowning:

I did follow the instructions and installed Python in C:\Python24

Hi Chanchao,

You want to download the "*Docs, Demo, Samples, etc."* and run the demo to see all the different widgets available.

See you
Werner

Chanchao wrote:

路路路

Hi,

Questions don't get more basic than this I'm afraid, but after installing wxPython I did not see any icons created in the start menu.. Also searched fora wxpython.exe but .. nothing.

So how does one start this up? All the 'getting started' guides seem to assume that you've been able to open it up.. :frowning:

I did follow the instructions and installed Python in C:\Python24

Cheers,
Chanchao

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Since you are running on MSW the Python installer set up associations for both
.PY and .PYW files. You can either double-click on these type of files to run the Python interpreter
or on simply enter the name of the script file on the commandline. Note that the python demo
is most easily run by clicking on the "Start > All Programs > wxPython2.6 Docs Demos and Tools >
Run the wxPython DEMO" menu shortcut (I'm assuming you have ver 2.6and the demo installed).

You'll find out quickly when you start writing apps and running them from Explorer that if your script has an error in it,
either a Python or wxPython one, that a DOS box flashes on the screen and then disappears taking the error trace with it.
That's why I prefer to execute Python on the commandline. Any error traces will print out and stay visible
in the DOS box.

Later on you will find out that running .PYW wxPython files at the command line causes any of your debug
prints and error trace info to not be printed at all. If you double-click on a .PYW file from Explorer you'll
find the no DOS box is created in addition to the wxPython GUI.

So, this leaves you with the 2 options to start a program either at the commandline or from Explorer.
If you go the Explorer route there is a "trick" to setting up your app that causes a wxPython log window
to be automatically displayed whenever a "print" or error trace sends stuff to the console.
The code to do this is really simple but I've forgotten to save an example because I prefer commandline execution.
I'm sure someone on this list can show you how to do this. (See below)

While I'm at it, there are (only ?) two basic ways to structure a wxPython program:
1) The app is derived from wxPySimpleApp:

    app = wxPySimpleApp ()

    frame = wxFrame (None, -1, 'My Application', size=(200, 400))
    #frame = MyFrame (None, -1, 'My Application', size=(200, 400))
    frame.Show (True)

    app.MainLoop ()

2) Subclass wxApp and create an OnInit method:

class MyApp (wxApp):

    # wxWindows calls this method to initialize the application

    def OnInit (self):

        # Create an instance of our customized Frame class
        frame = MyFrame (NULL, -1, "This is a test")
        frame.Show (True)

        # Tell wxWindows that this is our main window
        self.SetTopWindow (frame)

        # Return a success flag
        return true

    #end def OnInit
#end class MyApp

app = MyApp (False) # Create an instance of my application class
app.MainLoop () # Tell it to start processing events

Aha ! I just remembered how to set up the app to automatically create a text output window !
You must use the second app structure and change the next-to-last line to "app = MyApp (True)"

I hope this helps you get started.

Ray Pasco

Chanchao wrote:

路路路

Hi,

Questions don't get more basic than this I'm afraid, but after installing wxPython I did not see any icons created in the start menu.. Also searched fora wxpython.exe but .. nothing.

So how does one start this up? All the 'getting started' guides seem to assume that you've been able to open it up.. :frowning:

I did follow the instructions and installed Python in C:\Python24

Cheers,
Chanchao

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

I'm guessing the OP needs something even simpler that what's been given so far:

http://wiki.wxpython.org/index.cgi/How_20to_20Learn_20wxPython

Most importantly: wxPython is not a programming environment, like Delphi, or VB, or.... It is a toolkit, that can be used with the Python language. There are a number of programming environments (IDE) available for python, some of which work with wxPython and some of which do not. You can see a lot of discussion about this in the archives of this list.

I'd start with the first bit of advice on the page I linked above:

First: learn Python.

until you can write at least basic GUI-free pythons scripts, you're in no position to start writing wxPython programs.

-Chris

路路路

--
Christopher Barker, Ph.D.
Oceanographer
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov