For more check this out. http://www.wxpython.org/docs/api/wx.Gauge-class.html
class ProgressDialog(wx.Dialog): """ Shows a Progres Gauge while an operation is taking place. May be cancellable which is possible when converting pdf/ps """ def __init__(self, gui, title, to_add=1, cancellable=False): """Defines a gauge and a timer which updates the gauge.""" wx.Dialog.__init__(self, gui, title=title, style=wx.CAPTION) self.gui = gui self.count = 0 self.to_add = to_add self.timer = wx.Timer(self) self.gauge = wx.Gauge(self, range=100, size=(180, 30)) sizer = wx.BoxSizer(wx.VERTICAL) sizer.Add(self.gauge, 0, wx.ALL, 10) if cancellable: cancel = wx.Button(self, wx.ID_CANCEL, _("&Cancel")) cancel.SetDefault() cancel.Bind(wx.EVT_BUTTON, self.on_cancel) btnSizer = wx.StdDialogButtonSizer() btnSizer.AddButton(cancel) btnSizer.Realize() sizer.Add(btnSizer, 0, wx.ALIGN_CENTER | wx.TOP | wx.BOTTOM, 10) self.SetSizer(sizer) sizer.Fit(self) self.SetFocus() self.Bind(wx.EVT_TIMER, self.on_timer, self.timer) self.timer.Start(30) def on_timer(self, event): """Increases the gauge's progress.""" self.count += self.to_add self.gauge.SetValue(self.count) if self.count > 100: self.count = 0 def on_cancel(self, event): """Cancels the conversion process""" # do whatever
I made a prime number finder, it finds the nearest prime that is above and below any integer (Does not work that well with giant numbers.)
Made this in cpp.sh
Why would I need the x=y+1-1;?
x=y; just doesnt seem to work
Why is this?
And I know my coding ...
write a C++ program which take inputs from the user/keyboard and calculate his ZAKAT.
get the input from user may include
-Amount invested in business
-Amount given to other business partners as loan
-Amount payable to others
there are five tables (personTb, addressTb,churchTb) each holds data pertinent to an individual; (personAddress,personChurch) each hold the primary key for the person table and corresponding table IE personAddress holds primary key for addressTb.
both snippets work, my question is; Is my join correctly formatted?
select concat(personTb.p_fName,' ',personTb.p_mName,'. ',personTb.p_lName) ...