New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDLE not working correctly on Windows (Py30a2/IDLE30a1) #45942
Comments
(1) IDLE starts up on Windows OK, but if I press Alt+F the file menu Oh, and (no version of) IDLE respects the cursor blink setting on Windows. |
We are aware of several Windows related bugs with IDLE. I assume they |
Tiran, agreed. You can reproduce this issue quickly outside of IDLE from Tkinter import *
import tkMessageBox
class App(Frame):
def __init__(self, master):
Frame.__init__(self,master)
self.master.title("Wierd Menu")
self.configure(height=200,width=200)
self.grid(padx=15, pady=15,sticky=N+S+E+W)
self.menu = Menu(self)
self.master.config(menu=self.menu)
self.tkMenu = Menu(self.menu)
self.menu.add_cascade(label="MenuItem", menu=self.tkMenu)
self.tkMenu.add_command(label="Test", command=self.Test)
def Test(self):
tkMessageBox.showinfo("Test", "Test")
if __name__ == "__main__":
root = Tk()
app = App(root)
root.mainloop() |
I found that the huge font in menus is due to an error in the call to I recompiled tk, adding WINVER=0x500 to the command line: |
Amaury Forgeot d'Arc wrote:
Wow, you are a genius! :)
Is 0x0500 fine for Windows 2000? Should we add WINVER=0x0500 to the Christian |
Christian Heimes wrote:
http://msdn2.microsoft.com/en-us/library/aa383745.aspx Minimum system required Minimum value for _WIN32_WINNT and WINVER 0x0500 is fine for Windows 2000. Should we add something like this to PC/pyconfig.h to ensure that our #ifdef WINVER
# if WINVER < 0x0400
# error "Windows 2000 or newer is required"
# endif
# define WINVER 0x0500
# define _WIN32_WINNT 0x0500
#endif Christian |
I don't think this check is necessary. Some users may want to target specific windows versions, and compile |
Assigning to tiran since I'm not building Python on XP. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: