Also get rid of everything on your machine that isn't python-bitcoinrpc-master. On windows, these are in your Python27\Lib\site-packages folder. You should be left with a bitcoinrpc folder and a python_bitcoinrpc-0.1-py2.7.egg-info. Use this documentation:
https://en.bitcoin.it/wiki/API_reference_%28JSON-RPC%29#PythonHere is some sample code:
Code:
import wx
from bitcoinrpc.authproxy import AuthServiceProxy
class MainWindow(wx.Frame):
def __init__(self, parent, id):
wx.Frame.__init__(self, parent, id, 'HW', size = (600, 400))
panel = wx.Panel(self)
sendbtc = wx.Button(panel, -1, "Send BTC", (80, 80))
self.Bind(wx.EVT_BUTTON, self.send_btc, sendbtc)
wx.Frame.CenterOnScreen(self)
pass
def send_btc(one, two):
# one is of type wxFrame
# two is of type wxCommandEvent
# send the bitcoins now
h = AuthServiceProxy("http://<username>:<password>@localhost:8332")
h.sendfrom('', '<bitcoinaddress>', 0.00110000)
pass
if __name__ == '__main__':
app = wx.PySimpleApp()
frame = MainWindow(parent = None,id = -1)
frame.Show()
app.MainLoop()