I'm just asking for anyone who knows anywhere to get list of inbuilt wx.ID like wx.ID_CLOSE etc (HTML/PDF), because I dont want to use Id while there is built one. Also can I use menu simiral to something like GetId() Method??
Thanks

import wx

dir(wx)

Will give you all the attributes, functions, etc. of wx. And if you use the re module or a custom search you can filter out everything that starts with ID_

There's also the documentation

I don't understand your second question...

import wx

x = dir(wx)

for y in x:
	if y.find('ID_')!=-1:
		print y

output:

ID_ABORT
ID_ABOUT
ID_ADD
ID_ANY
ID_APPLY
ID_BACKWARD
ID_BOLD
ID_CANCEL
ID_CLEAR
ID_CLOSE
ID_CLOSE_ALL
ID_CONTEXT_HELP
ID_COPY
ID_CUT
ID_DEFAULT
ID_DELETE
ID_DOWN
ID_DUPLICATE
ID_EDIT
ID_EXIT
ID_FILE
ID_FILE1
ID_FILE2
ID_FILE3
ID_FILE4
ID_FILE5
ID_FILE6
ID_FILE7
ID_FILE8
ID_FILE9
ID_FIND
ID_FORWARD
ID_HELP
ID_HELP_COMMANDS
ID_HELP_CONTENTS
ID_HELP_CONTEXT
ID_HELP_INDEX
ID_HELP_PROCEDURES
ID_HELP_SEARCH
ID_HIGHEST
ID_HOME
ID_IGNORE
ID_INDENT
ID_INDEX
ID_ITALIC
ID_JUSTIFY_CENTER
ID_JUSTIFY_FILL
ID_JUSTIFY_LEFT
ID_JUSTIFY_RIGHT
ID_LOWEST
ID_MORE
ID_NEW
ID_NO
ID_NONE
ID_NOTOALL
ID_OK
ID_OPEN
ID_PAGE_SETUP
ID_PASTE
ID_PREFERENCES
ID_PREVIEW
ID_PREVIEW_CLOSE
ID_PREVIEW_FIRST
ID_PREVIEW_GOTO
ID_PREVIEW_LAST
ID_PREVIEW_NEXT
ID_PREVIEW_PREVIOUS
ID_PREVIEW_PRINT
ID_PREVIEW_ZOOM
ID_PRINT
ID_PRINT_SETUP
ID_PROPERTIES
ID_REDO
ID_REFRESH
ID_REMOVE
ID_REPLACE
ID_REPLACE_ALL
ID_RESET
ID_RETRY
ID_REVERT
ID_REVERT_TO_SAVED
ID_SAVE
ID_SAVEAS
ID_SELECTALL
ID_SEPARATOR
ID_SETUP
ID_STATIC
ID_STOP
ID_UNDELETE
ID_UNDERLINE
ID_UNDO
ID_UNINDENT
ID_UP
ID_VIEW_DETAILS
ID_VIEW_LARGEICONS
ID_VIEW_LIST
ID_VIEW_SMALLICONS
ID_VIEW_SORTDATE
ID_VIEW_SORTNAME
ID_VIEW_SORTSIZE
ID_VIEW_SORTTYPE
ID_YES
ID_YESTOALL
ID_ZOOM_100
ID_ZOOM_FIT
ID_ZOOM_IN
ID_ZOOM_OUT

And yeah, what is your second question asking?

Great script, thaks all,
Dont Worry jlm699 about the second question

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.