wxPython DatePickerCtrl problem Programming Software Development by ihatehippies I have a wx.DatePickerCtrl with the dropdown popup window that allows the user to … to access the popup window that is created below the datepickerctrl to see if the window is shown or to bind… it. It isn't created as a child of the datepickerctrl. Basically I'm trying to have the user 1.Click… Re: wxPython DatePickerCtrl problem Programming Software Development by snippsat … all platforms self.panel = wx.Panel(self) self.datepick = wx.DatePickerCtrl(self.panel,-1, pos=(20,15), style=wx.DP_DROPDOWN|wx…;Date selected = {}".format(date_str)) app = wx.App() MyFrame(None, 'DatePickerCtrl', (350, 240)).Show() app.MainLoop() Re: wxPython DatePickerCtrl problem Programming Software Development by ihatehippies The DatePickerCtrl works really well with what I'm developing. I guess I could recreate a DatePickerCtrl using a CalendarCtrl on a PopupWindow, it just seems unecessary. wx.DatePickerCtrl format Programming Software Development by acrocephalus Hello! I am using the wx.DatePickerCtrl to ask for the date using this code [CODE]wx.DatePickerCtrl(panel, -1, size=(110, -1), style=wx.DP_DROPDOWN | wx.DP_SHOWCENTURY) [/CODE] However, it returns the result as [CODE]Mon 30 Aug 2010 12:00:00 AM CEST[/CODE] but I meet them to be as YYYY/MM/DD. Is there any way to do it? Cheers! Dani Re: wxPython DatePickerCtrl problem Programming Software Development by Francesco_2 Hi, had this issue with DatePickerCtrl been resolved? I am facing the same problem. Thank you. Re: wxPython DatePickerCtrl problem Programming Software Development by Rufus_1 I'm taking a look at this now, but have you tried using the widget inspection tool to see what events are generated by the DatePickerCtrl? Re: wx.DatePickerCtrl format Programming Software Development by acrocephalus Thanks, I'll check it. I have another problem. I realized that it actually the wx.DatePickerCtrl returns the current system date, but it actually does not update to the selected date. How can I solve it? Cheers, Dani Re: wx.DatePickerCtrl format Programming Software Development by acrocephalus ….StaticText(panel, -1, 'Date:', size=(35, -1)) self.dpc = wx.DatePickerCtrl(panel, -1, size=(110, -1), style=wx.DP_DROPDOWN | wx.DP_SHOWCENTURY… Re: wxPython DatePickerCtrl problem Programming Software Development by ihatehippies no, that's similar to what I have. When you are choosing what month/year you want, before clicking on the date you choose I event fires. If you want to move the month forward one, the event fires, if you want to move the year forward one, the event fires again. I'm trying to catch when the user actually clicks on a day and the popup closes. Re: wxPython DatePickerCtrl problem Programming Software Development by HiHe The wx.calendar.CalendarCtrl() control gives you more flexibility: # explore the wx.calendar.CalendarCtrl() control # allows for point and click date input import wx import wx.calendar as cal class MyCalendar(wx.Dialog): """create a simple dialog window with a calendar display"""… Re: wxPython DatePickerCtrl problem Programming Software Development by HiHe It might be time for you to abandon wxPython and use the PySide/PyQT GUI toolkit. QCalendarWidget behaves the way you want to, here is a test code: '''ps_test_QCalendarWidget1.py simple test code for any PySide widget select a day from a calendar image PySide is the official LGPL-licensed version of PyQT You can … Re: wxPython DatePickerCtrl problem Programming Software Development by ihatehippies seems a bit drastic... Re: wxPython DatePickerCtrl problem Programming Software Development by gdtraveller I used the widget inspection tool to analyze the widget events. It seems that EVT_SHOW of the popup window can be used to achieve your result. If you're still reading this, let me know if you got this to work. Good luck. Re: wx.DatePickerCtrl format Programming Software Development by Beat_Slayer [URL="http://docs.python.org/library/time.html"]Hint[/URL] Cheers and Happy coding Re: wx.DatePickerCtrl format Programming Software Development by Beat_Slayer Wheres the code? Are you using the 'EVT_DATE_CHANGED' to catch the date? Cheers and Happy coding Re: wx.DatePickerCtrl format Programming Software Development by Beat_Slayer Try with the datetime module instead. Cheers and Hapy coding Re: wx.DatePickerCtrl format Programming Software Development by vegaseat You could also look here: [url]http://python-forum.org/pythonforum/viewtopic.php?f=4&t=20465[/url] Problems with wx.lib.masked.combobox.BaseMaskedComboBox Programming Software Development by acrocephalus … of dates to filter:', size=(200, -1)) self.dpc1 = wx.DatePickerCtrl(panel, -1, size=(110, -1), style=wx.DP_DROPDOWN | wx.DP_SHOWCENTURY…) self.dpc2 = wx.DatePickerCtrl(panel, -1, size=(110, -1), style=wx.DP_DROPDOWN | wx.DP_SHOWCENTURY… wxPython & wx.StaticBox Programming Software Development by radc …;) t5 = wx.StaticText(self,-1,"Status: ") dpc = wx.DatePickerCtrl(self, style = wx.DP_DROPDOWN | wx.DP_SHOWCENTURY | wx.DP_ALLOWNONE ) myList = range… Re: wxPython & wx.StaticBox Programming Software Development by radc Mine widget wx.DatePickerCtrl in wx.StaticBox is frozen. I click on it and it doesn`t show me calendar. wx.Check boxes are not displayed at all. Re: wxPython & wx.StaticBox Programming Software Development by woooee ….BoxSizer(wx.VERTICAL) hbox1 = wx.BoxSizer(wx.HORIZONTAL) datepic = wx.DatePickerCtrl(self.panel, -1, size=(110, -1), style=wx.DP_DROPDOWN | wx… Re: Starting wxPython (GUI code) Programming Software Development by vegaseat … displayed text and play with the wx.DatePickerCtrl() to get familiar with its capabilities ...… [code=python]# test wxPython's # wx.DatePickerCtrl(parent, id, dt, pos, size, style) # …10)) # create input widgets self.datepick = wx.DatePickerCtrl(self, wx.ID_ANY, pos=(20, 110), style… Re: Text control to display date Programming Software Development by acrocephalus Thank you! It was what I was looking for. I used the code [CODE]DateTxt = wx.DatePickerCtrl(panel, -1, size=(110, -1), style=wx.DP_DROPDOWN | wx.DP_SHOWCENTURY)[/CODE] Cheers! Dani Re: Problems with wx.lib.masked.combobox.BaseMaskedComboBox Programming Software Development by acrocephalus I solved the auto-complete issue by passing the autoSelect = True argument to the control. However, I haven't been able to solve the error given when keeping a long string in the choices ("Antigua and Bermuda" in the provided example). I have tried using wx.lib.masked.ComboBox instead of wx.lib.masked.combobox.BaseMaskedComboBox without … Re: wxPython & wx.StaticBox Programming Software Development by woooee This stripped down version appears to work for me, but it is rewritten because it was too difficult to tell the i, l, and 1's apart, let alone what the variables with nonsense names are supposed to contain. [CODE]import wx class TestFrame( wx.Frame ): def __init__( self ): wx.Frame.__init__ ( self, None, -1, 'wxPython' ) self… Re: wxPython & wx.StaticBox Programming Software Development by richieking If you want CheckBox in staticbox Try this [CODE]import wx class Frame(wx.Frame): def __init__(self,parent): wx.Frame.__init__(self,parent,size=(400,300),title="STATIC CHECK BOX ") self.pan=wx.Panel(self,-1) wx.StaticBox(self.pan, -1, 'BOXES', (5, 5), size=(100, 250)) self.dat()… Re: wxPython & wx.StaticBox Programming Software Development by radc Thanks guys. I have found alternative for my interface layout just using BoxSizer`s and Static BoxSizer`s in frame. So i got rid out of panel. Actually I am new to wx.Python and I don`t understand primary aim of panels, why do we need them? Re: wxPython & wx.StaticBox Programming Software Development by richieking Panel helps event to have special precision and on window paltform, it give a diffenet frame colour.